From c29e9e9b29d266e13d56acf07d7fa02d02d9136d Mon Sep 17 00:00:00 2001 From: kobewi <kobewi4e@gmail.com> Date: Sat, 11 Jan 2025 21:20:31 +0100 Subject: [PATCH] Ensure path for shallow scripts --- modules/gdscript/gdscript_analyzer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 50b487059bf3..60109efc4d5b 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3952,8 +3952,9 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::find_cached_external_parser_for_class(c Ref<GDScript> GDScriptAnalyzer::get_depended_shallow_script(const String &p_path, Error &r_error) { // To keep a local cache of the parser for resolving external nodes later. - parser->get_depended_parser_for(p_path); - Ref<GDScript> scr = GDScriptCache::get_shallow_script(p_path, r_error, parser->script_path); + const String path = ResourceUID::ensure_path(p_path); + parser->get_depended_parser_for(path); + Ref<GDScript> scr = GDScriptCache::get_shallow_script(path, r_error, parser->script_path); return scr; }