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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user