mirror of
https://github.com/tiennm99/godot.git
synced 2026-06-24 13:39:20 +00:00
Check for global script class information before clearing it
This commit is contained in:
@@ -276,7 +276,9 @@ void ScriptServer::save_global_classes() {
|
||||
}
|
||||
|
||||
if (gcarr.empty()) {
|
||||
ProjectSettings::get_singleton()->clear("_global_script_classes");
|
||||
if (ProjectSettings::get_singleton()->has_setting("_global_script_classes")) {
|
||||
ProjectSettings::get_singleton()->clear("_global_script_classes");
|
||||
}
|
||||
} else {
|
||||
ProjectSettings::get_singleton()->set("_global_script_classes", gcarr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user