Fix: Assert failure when joining nodes with frame

The node "index in tree" needs to be updated when adding the frame node.
This commit is contained in:
Hans Goudey 2022-12-08 15:12:10 -06:00
parent 3d00ac2961
commit 18a91ecee7
1 changed files with 2 additions and 0 deletions

View File

@ -1680,6 +1680,8 @@ static int node_join_exec(bContext *C, wmOperator * /*op*/)
bNode *frame_node = nodeAddStaticNode(C, &ntree, NODE_FRAME);
nodeSetActive(&ntree, frame_node);
ntree.ensure_topology_cache();
Array<NodeJoinState> join_states(ntree.all_nodes().size(), NodeJoinState{false, false});
for (bNode *node : ntree.all_nodes()) {