diff options
author | Atlinx <atlinuxtm@gmail.com> | 2022-08-29 21:14:19 -0400 |
---|---|---|
committer | Atlinx <atlinuxtm@gmail.com> | 2022-08-30 17:40:38 -0400 |
commit | 6b5640c88ce5ad24f06a41b9776f52af3fac7fa0 (patch) | |
tree | 72bc2091a39fa11e62534b30a9bdd213e96159da /modules/gdscript | |
parent | 051f24b067642a241d0a4acbb1b7644e11700bfc (diff) |
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.
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |