Check for global script class information before clearing it
(cherry picked from commit 1ca501d7d4
)
This commit is contained in:
parent
1f87bca8fb
commit
b2897f1f7b
@ -277,7 +277,9 @@ void ScriptServer::save_global_classes() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gcarr.empty()) {
|
if (gcarr.empty()) {
|
||||||
|
if (ProjectSettings::get_singleton()->has_setting("_global_script_classes")) {
|
||||||
ProjectSettings::get_singleton()->clear("_global_script_classes");
|
ProjectSettings::get_singleton()->clear("_global_script_classes");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ProjectSettings::get_singleton()->set("_global_script_classes", gcarr);
|
ProjectSettings::get_singleton()->set("_global_script_classes", gcarr);
|
||||||
}
|
}
|
||||||
|
@ -966,7 +966,9 @@ void EditorData::script_class_save_icon_paths() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d.empty()) {
|
if (d.empty()) {
|
||||||
|
if (ProjectSettings::get_singleton()->has_setting("_global_script_class_icons")) {
|
||||||
ProjectSettings::get_singleton()->clear("_global_script_class_icons");
|
ProjectSettings::get_singleton()->clear("_global_script_class_icons");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ProjectSettings::get_singleton()->set("_global_script_class_icons", d);
|
ProjectSettings::get_singleton()->set("_global_script_class_icons", d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user