summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-13 14:55:55 +0200
committerGitHub <noreply@github.com>2022-05-13 14:55:55 +0200
commit9ed56be82da04be8d951769569bd65bbe5e6cbb9 (patch)
tree3649eea43afc78d0e891f8dd2fc7b806446e3914
parent1346804769f9531d71dde1bd72798c3f6f309fbd (diff)
parent8870e1c75dd4ae240f963c229b299387a6c54fca (diff)
Merge pull request #60989 from Jojox/fix_gdscript_parser_enum
-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 b6bf523a67..aa1bfb312c 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -3565,6 +3565,7 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node
for (const KeyValue<StringName, int> &E : export_type.enum_values) {
if (!first) {
enum_hint_string += ",";
+ } else {
first = false;
}
enum_hint_string += E.key.operator String().capitalize().xml_escape();