mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 10:23:29 +00:00
Don't write global script class information if there is none
(cherry picked from commit 3163611f0c)
This commit is contained in:
@@ -276,7 +276,11 @@ void ScriptServer::save_global_classes() {
|
||||
gcarr.push_back(d);
|
||||
}
|
||||
|
||||
ProjectSettings::get_singleton()->set("_global_script_classes", gcarr);
|
||||
if (gcarr.empty()) {
|
||||
ProjectSettings::get_singleton()->clear("_global_script_classes");
|
||||
} else {
|
||||
ProjectSettings::get_singleton()->set("_global_script_classes", gcarr);
|
||||
}
|
||||
ProjectSettings::get_singleton()->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user