We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c6d0d8 + c29e9e9 commit 768c60cCopy full SHA for 768c60c
modules/gdscript/gdscript_analyzer.cpp
@@ -3952,8 +3952,9 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::find_cached_external_parser_for_class(c
3952
3953
Ref<GDScript> GDScriptAnalyzer::get_depended_shallow_script(const String &p_path, Error &r_error) {
3954
// 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);
+ const String path = ResourceUID::ensure_path(p_path);
+ parser->get_depended_parser_for(path);
3957
+ Ref<GDScript> scr = GDScriptCache::get_shallow_script(path, r_error, parser->script_path);
3958
return scr;
3959
}
3960
0 commit comments