[Bf-blender-cvs] [c8cec113536] blender-v3.4-release: Fix T102385: Set frame node active after joining nodes
Leon Schittek
noreply at git.blender.org
Wed Nov 9 22:27:58 CET 2022
Commit: c8cec113536c6d931847b08b03745f90c34a0339
Author: Leon Schittek
Date: Wed Nov 9 22:26:03 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rBc8cec113536c6d931847b08b03745f90c34a0339
Fix T102385: Set frame node active after joining nodes
Set the created frame node to be the active node when joining nodes
with the `NODE_OT_join` operator.
This behavior was unintentonaly changed in rB545fb528d5e1 when the
operator's execute function was simplified by utilizing the node tree
topology cache.
Reviewed By: Hans Goudey
Differential Revision: http://developer.blender.org/D16440
===================================================================
M source/blender/editors/space_node/node_relationships.cc
===================================================================
diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc
index 637c795d4d7..8eeba8727dc 100644
--- a/source/blender/editors/space_node/node_relationships.cc
+++ b/source/blender/editors/space_node/node_relationships.cc
@@ -1678,6 +1678,7 @@ static int node_join_exec(bContext *C, wmOperator * /*op*/)
const Set<bNode *> selected_nodes = get_selected_nodes(ntree);
bNode *frame_node = nodeAddStaticNode(C, &ntree, NODE_FRAME);
+ nodeSetActive(&ntree, frame_node);
/* reset tags */
LISTBASE_FOREACH (bNode *, node, &ntree.nodes) {
More information about the Bf-blender-cvs
mailing list