Merge pull request #53656 from pycbouh/gdscript-exports-redundant-string-op

This commit is contained in:
Rémi Verschelde 2021-10-11 09:18:25 +02:00 committed by GitHub
commit 21ab46f7e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3423,7 +3423,7 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node
String enum_hint_string;
for (const Map<StringName, int>::Element *E = export_type.enum_values.front(); E; E = E->next()) {
enum_hint_string += E->key().operator String().camelcase_to_underscore(true).capitalize().xml_escape();
enum_hint_string += E->key().operator String().capitalize().xml_escape();
enum_hint_string += ":";
enum_hint_string += String::num_int64(E->get()).xml_escape();