Nodes: Restrict viewer key tree updates to compositor
The active viewer key is only used by the compositor, so only tag the node tree for update of it is a compositor node tree.
This commit is contained in:
parent
09ee781a67
commit
6b0e769d14
|
@ -196,7 +196,8 @@ void ED_node_set_active_viewer_key(SpaceNode *snode)
|
|||
if (snode->nodetree && path) {
|
||||
/* A change in active viewer may result in the change of the output node used by the
|
||||
* compositor, so we need to get notified about such changes. */
|
||||
if (snode->nodetree->active_viewer_key.value != path->parent_key.value) {
|
||||
if (snode->nodetree->active_viewer_key.value != path->parent_key.value &&
|
||||
snode->nodetree->type == NTREE_COMPOSIT) {
|
||||
DEG_id_tag_update(&snode->nodetree->id, ID_RECALC_NTREE_OUTPUT);
|
||||
WM_main_add_notifier(NC_NODE, nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue