浏览代码

Merge pull request #75559 from ajreckof/Fix-descriptions-not-showing-for-theme-properties

Fix descriptions not showing for theme properties
Rémi Verschelde 2 年之前
父节点
当前提交
726c3c1bed
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      editor/editor_inspector.cpp

+ 5 - 0
editor/editor_inspector.cpp

@@ -3119,6 +3119,11 @@ void EditorInspector::update_tree() {
 			StringName propname = property_prefix + p.name;
 			bool found = false;
 
+			// Small hack for theme_overrides. They are listed under Control, but come from another class.
+			if (classname == "Control" && p.name.begins_with("theme_override_")) {
+				classname = get_edited_object()->get_class();
+			}
+
 			// Search for the property description in the cache.
 			HashMap<StringName, HashMap<StringName, PropertyDocInfo>>::Iterator E = doc_info_cache.find(classname);
 			if (E) {