mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
check the params section exist before erasing it in import_dock
related #38864
This commit is contained in:
parent
cba1f492cc
commit
b7a6946790
@ -441,7 +441,9 @@ void ImportDock::_reimport() {
|
||||
} else {
|
||||
//override entirely
|
||||
config->set_value("remap", "importer", importer_name);
|
||||
config->erase_section("params");
|
||||
if (config->has_section("params")) {
|
||||
config->erase_section("params");
|
||||
}
|
||||
|
||||
for (List<PropertyInfo>::Element *E = params->properties.front(); E; E = E->next()) {
|
||||
config->set_value("params", E->get().name, params->values[E->get().name]);
|
||||
|
Loading…
Reference in New Issue
Block a user