Browse Source

Remove redundant String operation from GDScript enum exports

Yuri Sizov 3 years ago
parent
commit
b6b65e08d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_parser.cpp

+ 1 - 1
modules/gdscript/gdscript_parser.cpp

@@ -4675,7 +4675,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
 										first = false;
 										first = false;
 									}
 									}
 
 
-									current_export.hint_string += E->get().operator String().camelcase_to_underscore(true).capitalize().xml_escape();
+									current_export.hint_string += E->get().operator String().capitalize().xml_escape();
 									if (!is_flags) {
 									if (!is_flags) {
 										current_export.hint_string += ":";
 										current_export.hint_string += ":";
 										current_export.hint_string += enum_values[E->get()].operator String().xml_escape();
 										current_export.hint_string += enum_values[E->get()].operator String().xml_escape();