diff options
author | Leon Schittek <leon.schittek@gmx.net> | 2022-11-10 00:26:03 +0300 |
---|---|---|
committer | Leon Schittek <leon.schittek@gmx.net> | 2022-11-10 00:26:16 +0300 |
commit | c8cec113536c6d931847b08b03745f90c34a0339 (patch) | |
tree | 7288ac98cb0a51d9d14c1d6fa56cfb2d2d4dbc3e /source/blender | |
parent | cebea62b4770295ae35d98e1e9e85a457bc05922 (diff) |
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
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/node_relationships.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |