mirror of
https://github.com/godotengine/godot.git
synced 2024-11-13 23:52:41 +00:00
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:
parent
051f24b067
commit
6b5640c88c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user