Fix Set Animation Save Paths breaking on Windows

This commit is contained in:
AlexOtsuka 2024-03-29 03:57:13 +01:00
parent 29b3d9e9e5
commit 4d3319eceb

View File

@ -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";