Skip to content

Commit 768c60c

Browse files
committed
Merge pull request godotengine#101442 from KoBeWi/path_goes_here
Ensure path for shallow scripts
2 parents 7c6d0d8 + c29e9e9 commit 768c60c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/gdscript/gdscript_analyzer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3952,8 +3952,9 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::find_cached_external_parser_for_class(c
39523952

39533953
Ref<GDScript> GDScriptAnalyzer::get_depended_shallow_script(const String &p_path, Error &r_error) {
39543954
// To keep a local cache of the parser for resolving external nodes later.
3955-
parser->get_depended_parser_for(p_path);
3956-
Ref<GDScript> scr = GDScriptCache::get_shallow_script(p_path, r_error, parser->script_path);
3955+
const String path = ResourceUID::ensure_path(p_path);
3956+
parser->get_depended_parser_for(path);
3957+
Ref<GDScript> scr = GDScriptCache::get_shallow_script(path, r_error, parser->script_path);
39573958
return scr;
39583959
}
39593960

0 commit comments

Comments
 (0)