diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-13 03:32:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-13 03:33:11 +0300 |
commit | 4132ca1ac2ebb590aae224b06ea8a76a674e39f6 (patch) | |
tree | 50ba7868861b558953dff1d8e8511654e24927f5 /source/blender/editors/interface/interface_layout.c | |
parent | 29e19cecd845516bc63ab5dba094447a9d87b7aa (diff) |
UI: show check-boxes pie-menu bool/enums
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |