mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Fix Set Animation Save Paths breaking on Windows
(cherry picked from commit 4d3319eceb)
This commit is contained in:
committed by
Rémi Verschelde
parent
d2433970c9
commit
cd02fe3469
@@ -1251,6 +1251,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||||||
item->set_metadata(0, E.key);
|
item->set_metadata(0, E.key);
|
||||||
item->set_editable(0, true);
|
item->set_editable(0, true);
|
||||||
item->set_checked(0, true);
|
item->set_checked(0, true);
|
||||||
|
name = name.validate_filename();
|
||||||
String path = p_path.path_join(name);
|
String path = p_path.path_join(name);
|
||||||
if (external_extension_type->get_selected() == 0) {
|
if (external_extension_type->get_selected() == 0) {
|
||||||
path += ".tres";
|
path += ".tres";
|
||||||
@@ -1304,6 +1305,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||||||
item->set_metadata(0, E.key);
|
item->set_metadata(0, E.key);
|
||||||
item->set_editable(0, true);
|
item->set_editable(0, true);
|
||||||
item->set_checked(0, true);
|
item->set_checked(0, true);
|
||||||
|
name = name.validate_filename();
|
||||||
String path = p_path.path_join(name);
|
String path = p_path.path_join(name);
|
||||||
if (external_extension_type->get_selected() == 0) {
|
if (external_extension_type->get_selected() == 0) {
|
||||||
path += ".tres";
|
path += ".tres";
|
||||||
@@ -1356,6 +1358,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||||||
item->set_metadata(0, E.key);
|
item->set_metadata(0, E.key);
|
||||||
item->set_editable(0, true);
|
item->set_editable(0, true);
|
||||||
item->set_checked(0, true);
|
item->set_checked(0, true);
|
||||||
|
name = name.validate_filename();
|
||||||
String path = p_path.path_join(name);
|
String path = p_path.path_join(name);
|
||||||
if (external_extension_type->get_selected() == 0) {
|
if (external_extension_type->get_selected() == 0) {
|
||||||
path += ".tres";
|
path += ".tres";
|
||||||
|
|||||||
Reference in New Issue
Block a user