You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Check for global script class information before clearing it
(cherry picked from commit 1ca501d7d4)
This commit is contained in:
committed by
Rémi Verschelde
parent
1f87bca8fb
commit
b2897f1f7b
@@ -277,7 +277,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