浏览代码

Fix theme property descriptions in the Inspector

Yuri Sizov 4 年之前
父节点
当前提交
45af2af214
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      editor/editor_inspector.cpp

+ 1 - 2
editor/editor_inspector.cpp

@@ -1907,8 +1907,7 @@ void EditorInspector::update_tree() {
 					}
 
 					Vector<String> slices = propname.operator String().split("/");
-					if (slices.size() == 2 && slices[0].begins_with("custom_")) {
-						// Likely a theme property.
+					if (slices.size() == 2 && slices[0].begins_with("theme_override_")) {
 						for (int i = 0; i < F->get().theme_properties.size(); i++) {
 							if (F->get().theme_properties[i].name == slices[1]) {
 								descr = DTR(F->get().theme_properties[i].description);