From 8ba6a703e2ecb2f0dba9fc40e673cddac4d5086e Mon Sep 17 00:00:00 2001 From: Saracen Date: Tue, 8 Oct 2024 15:27:07 +0100 Subject: [PATCH] Scene import bugfix: Fixes scene subresource property not being updated if all properties are reset to default in advanced importer settings. --- editor/import/3d/scene_import_settings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/import/3d/scene_import_settings.cpp b/editor/import/3d/scene_import_settings.cpp index 011d0135b44..6cc65281a90 100644 --- a/editor/import/3d/scene_import_settings.cpp +++ b/editor/import/3d/scene_import_settings.cpp @@ -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);