diff options
author | stmSi <stm1998sithumyo@gmail.com> | 2022-12-27 13:56:43 +0630 |
---|---|---|
committer | stmSi <stm1998sithumyo@gmail.com> | 2022-12-27 17:12:36 +0630 |
commit | b2a398d2a5097b4c5f174f407aa4538f89bd1618 (patch) | |
tree | 2ace8ede0a814c72b15aeb0fd90d22be9be8548e /editor | |
parent | f382a2b59bb9606f958ccaf7be7ac98f45607c9f (diff) |
Editor: Fix `Paste From Clipboard` make two root separate scenes pointing to same file
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index f91b571118..60d3925cd6 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -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); |