forked from bartvdbraak/blender
Fix #37084, Backdrop not invalidating inside node groups.
Extended the is_active_group flag such that both the current edittree as well as the base node tree in Scene do a viewer node update.
This commit is contained in:
parent
089d0ad8f9
commit
78efff5f42
@ -45,7 +45,10 @@ void ExecutionSystemHelper::addbNodeTree(ExecutionSystem &system, int nodes_star
|
|||||||
vector<Node *>& nodes = system.getNodes();
|
vector<Node *>& nodes = system.getNodes();
|
||||||
vector<SocketConnection *>& links = system.getConnections();
|
vector<SocketConnection *>& links = system.getConnections();
|
||||||
|
|
||||||
bool is_active_group = (parent_key.value == system.getContext().getbNodeTree()->active_viewer_key.value);
|
const bNodeTree *basetree = system.getContext().getbNodeTree();
|
||||||
|
/* update viewers in the active edittree as well the base tree (for backdrop) */
|
||||||
|
bool is_active_group = (parent_key.value == basetree->active_viewer_key.value
|
||||||
|
|| tree == basetree);
|
||||||
|
|
||||||
/* add all nodes of the tree to the node list */
|
/* add all nodes of the tree to the node list */
|
||||||
bNode *node = (bNode *)tree->nodes.first;
|
bNode *node = (bNode *)tree->nodes.first;
|
||||||
|
Loading…
Reference in New Issue
Block a user