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.
This commit is contained in:
Atlinx 2022-08-29 21:14:19 -04:00
parent 051f24b067
commit 6b5640c88c

View File

@ -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 {