From 8b729e5b7e20e64204040d2fa24e07d6c3c3a494 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. --- 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 28105d74205..2142ee3c103 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -1065,7 +1065,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;