Skip to content

Commit

Permalink
Merge pull request godotengine#101442 from KoBeWi/path_goes_here
Browse files Browse the repository at this point in the history
Ensure path for shallow scripts
  • Loading branch information
akien-mga committed Jan 11, 2025
2 parents 7c6d0d8 + c29e9e9 commit 768c60c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 768c60c

Please sign in to comment.