From 4d3319eceb9b9c69bd9211fb30bb1509db79f6d7 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 --- editor/import/3d/scene_import_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/import/3d/scene_import_settings.cpp b/editor/import/3d/scene_import_settings.cpp index e4f1da55a59..67b13e33288 100644 --- a/editor/import/3d/scene_import_settings.cpp +++ b/editor/import/3d/scene_import_settings.cpp @@ -1343,6 +1343,7 @@ void SceneImportSettingsDialog::_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"; @@ -1396,6 +1397,7 @@ void SceneImportSettingsDialog::_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"; @@ -1448,6 +1450,7 @@ void SceneImportSettingsDialog::_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";