Browse Source

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.
Atlinx 2 years ago
parent
commit
6b5640c88c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdscript/gdscript_analyzer.cpp

+ 1 - 0
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 {