Commit: 6b0e769d14adf16b0b93b262e226c25b5b9cf95d
Author: Omar Emara
Date: Fri Dec 2 10:32:50 2022 +0200
Branches: master
https://developer.blender.org/rB6b0e769d14adf16b0b93b262e226c25b5b9cf95d
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.
===================================================================
M source/blender/editors/space_node/space_node.cc
===================================================================
diff --git a/source/blender/editors/space_node/space_node.cc
b/source/blender/editors/space_node/space_node.cc
index c993fa57d76..cb124342a83 100644
--- a/source/blender/editors/space_node/space_node.cc
+++ b/source/blender/editors/space_node/space_node.cc
@@ -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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs