From caf55eb0725467422f917fd62f965a1a85b3a1d5 Mon Sep 17 00:00:00 2001 From: AlexOtsuka Date: Fri, 29 Mar 2024 03:57:13 +0100 Subject: [PATCH] Fix Set Animation Save Paths breaking on Windows (cherry picked from commit 4d3319eceb9b9c69bd9211fb30bb1509db79f6d7) --- editor/import/scene_import_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp index b4b21bd73d1..8122f588716 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -1085,6 +1085,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) { item->set_metadata(0, E.key); item->set_editable(0, true); item->set_checked(0, true); + name = name.validate_filename(); String path = p_path.path_join(name); if (external_extension_type->get_selected() == 0) { path += ".tres"; @@ -1138,6 +1139,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) { item->set_metadata(0, E.key); item->set_editable(0, true); item->set_checked(0, true); + name = name.validate_filename(); String path = p_path.path_join(name); if (external_extension_type->get_selected() == 0) { path += ".tres"; @@ -1190,6 +1192,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) { item->set_metadata(0, E.key); item->set_editable(0, true); item->set_checked(0, true); + name = name.validate_filename(); String path = p_path.path_join(name); if (external_extension_type->get_selected() == 0) { path += ".tres";