From b2a398d2a5097b4c5f174f407aa4538f89bd1618 Mon Sep 17 00:00:00 2001 From: stmSi Date: Tue, 27 Dec 2022 13:56:43 +0630 Subject: Editor: Fix `Paste From Clipboard` make two root separate scenes pointing to same file --- editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') 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 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); -- cgit v1.2.3