[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:
parent
031aa99d31
commit
8b729e5b7e
|
@ -1065,7 +1065,7 @@ void SceneImportSettings::_viewport_input(const Ref<InputEvent> &p_input) {
|
||||||
void SceneImportSettings::_re_import() {
|
void SceneImportSettings::_re_import() {
|
||||||
HashMap<StringName, Variant> main_settings;
|
HashMap<StringName, Variant> main_settings;
|
||||||
|
|
||||||
main_settings = defaults;
|
main_settings = scene_import_settings_data->current;
|
||||||
main_settings.erase("_subresources");
|
main_settings.erase("_subresources");
|
||||||
Dictionary nodes;
|
Dictionary nodes;
|
||||||
Dictionary materials;
|
Dictionary materials;
|
||||||
|
|
Loading…
Reference in New Issue