From 6b5640c88ce5ad24f06a41b9776f52af3fac7fa0 Mon Sep 17 00:00:00 2001 From: Atlinx Date: Mon, 29 Aug 2022 21:14:19 -0400 Subject: Fix inferred GDScript enum values not appearing in inspector "enum_values" originally wasn't being forwarded to the new type inside "reduce_identifier_from_base", which caused hint strings derived from the new type to be blank, which ultimately caused an empty enum dropdown menu. --- modules/gdscript/gdscript_analyzer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index a07d4855f3..dd3c40a480 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2726,6 +2726,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod result.builtin_type = Variant::INT; result.native_type = base.native_type; result.enum_type = base.enum_type; + result.enum_values = base.enum_values; p_identifier->set_datatype(result); return; } else { -- cgit v1.2.3