Merge pull request #114700 from KoBeWi/closer_siblings

Paste as Sibling right below the node
This commit is contained in:
Thaddeus Crews 2026-01-28 12:26:53 -06:00
commit 34ed1c8fb1
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -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) {