-Fix issue of scene import script path being broken on reimport, fixes #1668
This commit is contained in:
parent
8fa4f1cf82
commit
2998515442
1 changed files with 2 additions and 1 deletions
|
@ -760,7 +760,7 @@ void EditorSceneImportDialog::_import(bool p_and_open) {
|
|||
rim->set_option("animation_optimizer_max_angle",animation_options->get_optimize_max_angle());
|
||||
rim->set_option("animation_filters",animation_options->get_filter());
|
||||
rim->set_option("animation_clips",animation_options->get_clips());
|
||||
rim->set_option("post_import_script",script_path->get_text()!=String()?EditorImportPlugin::validate_source_path(script_path->get_text()):String());
|
||||
rim->set_option("post_import_script",script_path->get_text());
|
||||
rim->set_option("import_this_time",this_import->get_selected());
|
||||
rim->set_option("import_next_time",next_import->get_selected());
|
||||
rim->set_option("reimport",true);
|
||||
|
@ -906,6 +906,7 @@ void EditorSceneImportDialog::popup_import(const String &p_from) {
|
|||
if (rimd->has_option("animation_optimizer_max_angle"))
|
||||
animation_options->set_optimize_max_angle(rimd->get_option("animation_optimizer_max_angle"));
|
||||
|
||||
|
||||
script_path->set_text(rimd->get_option("post_import_script"));
|
||||
if (rimd->has_option("import_this_time"))
|
||||
this_import->select(rimd->get_option("import_this_time"));
|
||||
|
|
Loading…
Reference in a new issue