From eaa2485a5d786f002ec00ddbadb4ac933f328946 Mon Sep 17 00:00:00 2001 From: Kirill Diduk Date: Wed, 26 Jul 2023 00:06:15 +0200 Subject: [PATCH] [bugfix] Fix reimporting scene withh default values selected This commit fixes #78140 When the scene was re-imported with non-default values of some settings, re-importing it again using default values for those settings didn't have the effect. The problem was that when handling the reimport, a wrong dictionary of the settings was used. (cherry picked from commit 8b729e5b7e20e64204040d2fa24e07d6c3c3a494) --- editor/import/scene_import_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp index 92d287c54fe..b4b21bd73d1 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -927,7 +927,7 @@ void SceneImportSettings::_viewport_input(const Ref &p_input) { void SceneImportSettings::_re_import() { HashMap main_settings; - main_settings = defaults; + main_settings = scene_import_settings_data->current; main_settings.erase("_subresources"); Dictionary nodes; Dictionary materials;