Fix descriptions not showing for theme properties

This commit is contained in:
ajreckof 2023-04-01 11:53:01 +02:00
parent c58080299a
commit 14140eb2d9

View file

@ -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) {