|
@@ -937,7 +937,9 @@ void EditorData::script_class_save_icon_paths() {
|
|
|
}
|
|
|
|
|
|
if (d.empty()) {
|
|
|
- ProjectSettings::get_singleton()->clear("_global_script_class_icons");
|
|
|
+ if (ProjectSettings::get_singleton()->has_setting("_global_script_class_icons")) {
|
|
|
+ ProjectSettings::get_singleton()->clear("_global_script_class_icons");
|
|
|
+ }
|
|
|
} else {
|
|
|
ProjectSettings::get_singleton()->set("_global_script_class_icons", d);
|
|
|
}
|