diff options
author | ajreckof <66184050+ajreckof@users.noreply.github.com> | 2023-04-07 17:44:37 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-07 17:44:37 +0200 |
commit | 62dbd512cc74532902ade9be4d28378b4c0ecf3e (patch) | |
tree | 36102d9263b80107ea37756a8b59413d13c69bf8 /editor | |
parent | 4cc8a689bae5e3fe442a7ddbd962732ebf86a3e7 (diff) |
Fix descriptions not showing for theme properties
(cherry picked from commit 14140eb2d915d14f70fb34405ddbd93692a7ad33)
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_inspector.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 44426dc143..8498ddecd6 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<StringName, HashMap<StringName, PropertyDocInfo>>::Iterator E = doc_info_cache.find(classname); if (E) { |