mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
Preserve scene unique names when saving branch as scene.
This commit is contained in:
parent
9f12e7b52d
commit
7814dedc91
@ -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"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user