Merge pull request #23550 from Kanabenki/fix-flag-enum-export
Add PROPERTY_USAGE_SCRIPT_VARIABLE flag for export(Enum) properties
This commit is contained in:
commit
4771b032c4
1 changed files with 1 additions and 0 deletions
|
@ -4353,6 +4353,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
|
||||
current_export.type = Variant::INT;
|
||||
current_export.hint = is_flags ? PROPERTY_HINT_FLAGS : PROPERTY_HINT_ENUM;
|
||||
current_export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
|
||||
Dictionary enum_values = constant;
|
||||
|
||||
List<Variant> keys;
|
||||
|
|
Loading…
Reference in a new issue