From 9d6af9323aa856bd1e23453838fd2f6c0c0c92ef Mon Sep 17 00:00:00 2001 From: ryburnj Date: Fri, 9 Sep 2022 10:29:59 +1000 Subject: Fix inconsistent scene file name casing by moving existing Name_Casing code to separate function in editor_node, and adding a call from both editor_node and scene_tree_dock. --- editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/scene_tree_dock.cpp') diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index a437245c57..7714df9c4e 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -916,6 +916,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { String existing; if (extensions.size()) { String root_name(tocopy->get_name()); + root_name = EditorNode::adjust_scene_name_casing(root_name); existing = root_name + "." + extensions.front()->get().to_lower(); } new_scene_from_dialog->set_current_path(existing); -- cgit v1.2.3