From 14140eb2d915d14f70fb34405ddbd93692a7ad33 Mon Sep 17 00:00:00 2001 From: ajreckof <66184050+ajreckof@users.noreply.github.com> Date: Sat, 1 Apr 2023 11:53:01 +0200 Subject: [PATCH] Fix descriptions not showing for theme properties --- editor/editor_inspector.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 44426dc1438..8498ddecd61 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3133,6 +3133,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>::Iterator E = doc_info_cache.find(classname); if (E) {