From d330f5642ee892d34ad31867bcb0cad1cad9e538 Mon Sep 17 00:00:00 2001 From: "ocean (they/them)" Date: Tue, 12 Sep 2023 11:11:09 -0400 Subject: [PATCH] GDScript: Fix compilation of expressions compiling other classes This PR is part of ongoing work on fixing cyclic dependencies in the GDScript compiler. --- modules/gdscript/gdscript_analyzer.cpp | 4 ++-- modules/gdscript/gdscript_compiler.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7b3d31f4a85..1aadf429fde 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3465,7 +3465,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base_set_class(GDScriptParser::Ide p_identifier->set_datatype(p_identifier_datatype); Error err = OK; - Ref scr = GDScriptCache::get_shallow_script(p_identifier_datatype.script_path, err); + Ref scr = GDScriptCache::get_shallow_script(p_identifier_datatype.script_path, err, parser->script_path); if (err) { push_error(vformat(R"(Error while getting cache for script "%s".)", p_identifier_datatype.script_path), p_identifier); return; @@ -4589,7 +4589,7 @@ Array GDScriptAnalyzer::make_array_from_element_datatype(const GDScriptParser::D Ref