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:
Saracen 2024-10-08 15:27:07 +01:00
parent 842f982397
commit 8ba6a703e2

View file

@ -1289,9 +1289,7 @@ void SceneImportSettingsDialog::_re_import() {
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.
EditorFileSystem::get_singleton()->reimport_file_with_custom_parameters(base_path, editing_animation ? "animation_library" : "scene", main_settings);