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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue