1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix GDScriptCache::get_full_script eating parsing errors because of early exit

Fixes #75545.
This commit is contained in:
Matthew Borkowski
2023-10-18 04:18:29 -04:00
parent dce1aab174
commit 2d262c072b

View File

@@ -287,7 +287,8 @@ Ref<GDScript> GDScriptCache::get_full_script(const String &p_path, Error &r_erro
if (script.is_null()) { if (script.is_null()) {
script = get_shallow_script(p_path, r_error); script = get_shallow_script(p_path, r_error);
if (r_error) { // Only exit early if script failed to load, otherwise let reload report errors.
if (script.is_null()) {
return script; return script;
} }
} }