summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-06 11:29:20 +0100
committerGitHub <noreply@github.com>2018-11-06 11:29:20 +0100
commit4771b032c4f995383fda02b6bf3ecd2829d85bb4 (patch)
treef70f2423d6ce1a70d47c73fca2b718d097328bcb /modules
parent89dd51d4331b332df69df97964d72d73a7423fce (diff)
parent30d473689c5a7e546e4619d83a3f4cad89d103ec (diff)
Merge pull request #23550 from Kanabenki/fix-flag-enum-export
Add PROPERTY_USAGE_SCRIPT_VARIABLE flag for export(Enum) properties
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_parser.cpp1
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;