瀏覽代碼

Remove redundant `camelcase_to_underscore()` call in EditorInspector

Calling `String::capitalize()` already calls
`String::camelcase_to_underscore()` under the hood.
Hugo Locurcio 6 年之前
父節點
當前提交
8c79b4f5e9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/editor_inspector.cpp

+ 2 - 2
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();
 			}
 		}