Scene import bugfix:
Fixes scene subresource property not being updated if all properties are reset to default in advanced importer settings.
This commit is contained in:
parent
842f982397
commit
8ba6a703e2
1 changed files with 1 additions and 3 deletions
|
@ -1289,9 +1289,7 @@ void SceneImportSettingsDialog::_re_import() {
|
||||||
subresources["animations"] = animations;
|
subresources["animations"] = animations;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subresources.size()) {
|
main_settings["_subresources"] = subresources;
|
||||||
main_settings["_subresources"] = subresources;
|
|
||||||
}
|
|
||||||
|
|
||||||
_cleanup(); // Prevent skeletons and other pointers from pointing to dangling references.
|
_cleanup(); // Prevent skeletons and other pointers from pointing to dangling references.
|
||||||
EditorFileSystem::get_singleton()->reimport_file_with_custom_parameters(base_path, editing_animation ? "animation_library" : "scene", main_settings);
|
EditorFileSystem::get_singleton()->reimport_file_with_custom_parameters(base_path, editing_animation ? "animation_library" : "scene", main_settings);
|
||||||
|
|
Loading…
Reference in a new issue