Skip to content

Commit

Permalink
Merge pull request #90003 from AlexOtsuka/fix-animation-save-paths
Browse files Browse the repository at this point in the history
Fix Set Animation Save Paths breaking on Windows
  • Loading branch information
akien-mga committed Apr 4, 2024
2 parents 88f7012 + 4d3319e commit 77a9cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 77a9cf0

Please sign in to comment.