diff options
author | Kanabenki <18357657+Kanabenki@users.noreply.github.com> | 2018-11-06 09:53:53 +0100 |
---|---|---|
committer | Kanabenki <18357657+Kanabenki@users.noreply.github.com> | 2018-11-06 10:00:56 +0100 |
commit | 30d473689c5a7e546e4619d83a3f4cad89d103ec (patch) | |
tree | f70f2423d6ce1a70d47c73fca2b718d097328bcb /modules | |
parent | 89dd51d4331b332df69df97964d72d73a7423fce (diff) |
Add missing flag for exported enum
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 3e5ad7c99b..1d26700fa0 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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; |