diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-11 07:21:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 07:21:57 +0200 |
commit | 40670288948cc1066ea1504e62a98c53702d10d0 (patch) | |
tree | 1c6d719e6d2ef34bd173689c5137de3575c56258 | |
parent | fc281dce576657461fb5b83582ccbafb9c21c1eb (diff) | |
parent | 8c79b4f5e911a4846c47dc6d05e24b9d89718361 (diff) |
Merge pull request #32729 from Calinou/inspector-remove-string-conversion
Remove redundant `camelcase_to_underscore()` call in EditorInspector
-rw-r--r-- | editor/editor_inspector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index b29417b4c3..78e058eeaa 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1566,11 +1566,11 @@ void EditorInspector::update_tree() { if (dot != -1) { String ov = name.right(dot); name = name.substr(0, dot); - name = name.camelcase_to_underscore().capitalize(); + name = name.capitalize(); name += ov; } else { - name = name.camelcase_to_underscore().capitalize(); + name = name.capitalize(); } } |