Merge pull request #114700 from KoBeWi/closer_siblings
Paste as Sibling right below the node
This commit is contained in:
commit
34ed1c8fb1
1 changed files with 3 additions and 0 deletions
|
|
@ -4414,6 +4414,9 @@ List<Node *> SceneTreeDock::paste_nodes(bool p_paste_as_sibling) {
|
|||
ur->add_do_method(EditorNode::get_singleton(), "set_edited_scene", dup);
|
||||
} else {
|
||||
ur->add_do_method(paste_parent, "add_child", dup, true);
|
||||
if (paste_sibling) {
|
||||
ur->add_do_method(paste_parent, "move_child", dup, paste_sibling->get_index() + 1);
|
||||
}
|
||||
}
|
||||
|
||||
for (KeyValue<const Node *, Node *> &E2 : duplimap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue