You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Ensure path for shallow scripts
This commit is contained in:
@@ -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) {
|
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.
|
// To keep a local cache of the parser for resolving external nodes later.
|
||||||
parser->get_depended_parser_for(p_path);
|
const String path = ResourceUID::ensure_path(p_path);
|
||||||
Ref<GDScript> scr = GDScriptCache::get_shallow_script(p_path, r_error, parser->script_path);
|
parser->get_depended_parser_for(path);
|
||||||
|
Ref<GDScript> scr = GDScriptCache::get_shallow_script(path, r_error, parser->script_path);
|
||||||
return scr;
|
return scr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user