Fix #135643: Node ungroup operator doesn't move frame nodes

Caused by 4bf34d9591.

Nodes within frames were ignored because previously their location was
relative to the frame, so moving both the frame and the node would cause
"double" movement. Now each node location is independent.
This commit is contained in:
Hans Goudey
2025-03-10 09:32:12 -04:00
parent 690a165630
commit c52da69dfb
@@ -320,10 +320,8 @@ static void node_group_ungroup(Main *bmain, bNodeTree *ntree, bNode *gnode)
animation_basepath_change_new(*old_animation_basepath, *new_animation_basepath));
}
if (!node->parent) {
node->location[0] += gnode->location[0];
node->location[1] += gnode->location[1];
}
node->location[0] += gnode->location[0];
node->location[1] += gnode->location[1];
node->flag |= NODE_SELECT;
}