Skip to content

Commit

Permalink
Merge pull request #76609 from HolonProduction/save-branch-as-scene-u…
Browse files Browse the repository at this point in the history
…nique-name

Preserve scene unique names when saving branch as scene.
  • Loading branch information
clayjohn authored May 3, 2023
2 parents cbc99ee + 7814ded commit f008027
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit f008027

Please sign in to comment.