Merge pull request #76609 from HolonProduction/save-branch-as-scene-unique-name

Preserve scene unique names when saving branch as scene.
This commit is contained in:
Clay John 2023-05-03 10:40:30 -07:00 committed by GitHub
commit f0080279d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,6 +276,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"));