Skip to content

Commit 8d39e4b

Browse files
committed
Fix ownership when pasting non root with child nodes
1 parent f2cc3f1 commit 8d39e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/scene_tree_dock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4268,7 +4268,7 @@ List<Node *> SceneTreeDock::paste_nodes(bool p_paste_as_sibling) {
42684268
// and added to the node_clipboard_edited_scene_owned list.
42694269
if (d != dup && E2.key->get_owner() == nullptr) {
42704270
if (node_clipboard_edited_scene_owned.find(const_cast<Node *>(E2.key))) {
4271-
ur->add_do_method(d, "set_owner", edited_scene);
4271+
ur->add_do_method(d, "set_owner", owner);
42724272
}
42734273
}
42744274
}

0 commit comments

Comments
 (0)