From 4132ca1ac2ebb590aae224b06ea8a76a674e39f6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 13 Feb 2015 11:32:24 +1100 Subject: UI: show check-boxes pie-menu bool/enums --- source/blender/editors/interface/interface_layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index fb73b8ec34c..2513acc7255 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1236,7 +1236,8 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index name = ui_item_name_add_colon(name, namestr); } - if (layout->root->type == UI_LAYOUT_MENU) { + /* menus and pie-menus don't show checkbox without this */ + if (ELEM(layout->root->type, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU)) { if (type == PROP_BOOLEAN && ((is_array == false) || (index != RNA_NO_INDEX))) { if (is_array) icon = (RNA_property_boolean_get_index(ptr, prop, index)) ? ICON_CHECKBOX_HLT : ICON_CHECKBOX_DEHLT; else icon = (RNA_property_boolean_get(ptr, prop)) ? ICON_CHECKBOX_HLT : ICON_CHECKBOX_DEHLT; -- cgit v1.2.3