[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.
This commit is contained in:
Kirill Diduk 2023-07-26 00:06:15 +02:00
parent 031aa99d31
commit 8b729e5b7e
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ void SceneImportSettings::_viewport_input(const Ref<InputEvent> &p_input) {
void SceneImportSettings::_re_import() {
HashMap<StringName, Variant> main_settings;
main_settings = defaults;
main_settings = scene_import_settings_data->current;
main_settings.erase("_subresources");
Dictionary nodes;
Dictionary materials;