1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Load/update GDScript from disk on load if cache mode is CACHE_MODE_IGNORE

This commit is contained in:
Rindbee
2022-07-20 12:40:19 +08:00
parent f74491fdee
commit f1a4041f52
3 changed files with 12 additions and 6 deletions

View File

@@ -2390,7 +2390,7 @@ Ref<Resource> ResourceFormatLoaderGDScript::load(const String &p_path, const Str
}
Error err;
Ref<GDScript> script = GDScriptCache::get_full_script(p_path, err);
Ref<GDScript> script = GDScriptCache::get_full_script(p_path, err, "", p_cache_mode == CACHE_MODE_IGNORE);
// TODO: Reintroduce binary and encrypted scripts.