diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-09 18:43:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-09 19:11:24 +0300 |
commit | 324e24ee38e4ccc7d9014cde3f83637602ec293d (patch) | |
tree | e63f72183b3b3e2f285527699b611089a8a7801a /source | |
parent | 81c18c2507484985be2d18a013badf4e3ea35d67 (diff) |
Fix layout.prop invert_checkbox not working combined with icons
Contributed by Valentin (Poulpator).
Differential Revision: https://developer.blender.org/D7027
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index dd002f4e77f..1aa2670942f 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2183,7 +2183,11 @@ void uiItemFullR(uiLayout *layout, } if (flag & UI_ITEM_R_CHECKBOX_INVERT) { - if (ELEM(but->type, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N)) { + if (ELEM(but->type, + UI_BTYPE_CHECKBOX, + UI_BTYPE_CHECKBOX_N, + UI_BTYPE_ICON_TOGGLE, + UI_BTYPE_ICON_TOGGLE_N)) { but->drawflag |= UI_BUT_CHECKBOX_INVERT; } } |