You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Restore script class cache if removed
I have no idea why anyone would do this, but this fixes it. Fixes #72154. Depends on #72444 being merged to function properly.
This commit is contained in:
@@ -369,6 +369,14 @@ void ScriptServer::save_global_classes() {
|
||||
ProjectSettings::get_singleton()->store_global_class_list(gcarr);
|
||||
}
|
||||
|
||||
bool ScriptServer::has_global_classes() {
|
||||
return !global_classes.is_empty();
|
||||
}
|
||||
|
||||
String ScriptServer::get_global_class_cache_file_path() {
|
||||
return ProjectSettings::get_singleton()->get_global_class_list_path();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
Variant ScriptInstance::call_const(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error) {
|
||||
|
||||
Reference in New Issue
Block a user