From 0f184379def23f71a56d21197a3f932c7f6143bb Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Thu, 12 Jan 2023 01:03:53 +0200 Subject: GDScript: Fix small inconsistencies with resolve_datatype --- modules/gdscript/gdscript_analyzer.cpp | 56 +++++++++++++--------------------- 1 file changed, 21 insertions(+), 35 deletions(-) (limited to 'modules/gdscript/gdscript_analyzer.cpp') diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7bde4e7c4b..6fb1abaf84 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -103,8 +103,21 @@ static GDScriptParser::DataType make_native_meta_type(const StringName &p_class_ type.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT; type.kind = GDScriptParser::DataType::NATIVE; type.builtin_type = Variant::OBJECT; - type.is_constant = true; type.native_type = p_class_name; + type.is_constant = true; + type.is_meta_type = true; + return type; +} + +static GDScriptParser::DataType make_script_meta_type(const Ref