Editor: Fix Paste From Clipboard
make two root separate scenes pointing to same file
This commit is contained in:
parent
f382a2b59b
commit
b2a398d2a5
1 changed files with 1 additions and 0 deletions
|
@ -3217,6 +3217,7 @@ List<Node *> SceneTreeDock::paste_nodes() {
|
|||
if (!paste_parent) {
|
||||
paste_parent = dup;
|
||||
owner = dup;
|
||||
dup->set_scene_file_path(String()); // Make sure the scene path is empty, to avoid accidental references.
|
||||
ur->add_do_method(EditorNode::get_singleton(), "set_edited_scene", dup);
|
||||
} else {
|
||||
ur->add_do_method(paste_parent, "add_child", dup, true);
|
||||
|
|
Loading…
Reference in a new issue