From a07ad181ab71e374082fa37cea6b399bd4c8092d Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Sun, 30 Apr 2023 13:33:43 +0200 Subject: Preserve scene unique names when saving branch as scene. (cherry picked from commit 7814dedc91a9df70a6c873d0ad30f444c401b0ec) --- editor/scene_tree_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor') diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index d8f1d92e44..f1e1136c83 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -275,6 +275,8 @@ void SceneTreeDock::_replace_with_branch_scene(const String &p_file, Node *base) return; } + instantiated_scene->set_unique_name_in_owner(base->is_unique_name_in_owner()); + EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); undo_redo->create_action(TTR("Replace with Branch Scene")); -- cgit v1.2.3