From 0ff0f64cd4009700f8f95db865320dc154349dff Mon Sep 17 00:00:00 2001 From: Brian Semrau Date: Tue, 12 Oct 2021 10:49:06 -0400 Subject: GDScript: Access outer scope classes --- modules/gdscript/gdscript_analyzer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gdscript/gdscript_analyzer.cpp') diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 9e9873d45f..a025a90b8c 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2682,6 +2682,11 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod p_identifier->is_constant = false; return; } break; + case GDScriptParser::ClassNode::Member::CLASS: { + resolve_class_interface(member.m_class); + p_identifier->set_datatype(member.m_class->get_datatype()); + return; + } break; default: break; } -- cgit v1.2.3