From 324e24ee38e4ccc7d9014cde3f83637602ec293d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 9 Mar 2020 16:43:47 +0100 Subject: Fix layout.prop invert_checkbox not working combined with icons Contributed by Valentin (Poulpator). Differential Revision: https://developer.blender.org/D7027 --- source/blender/editors/interface/interface_layout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source') 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; } } -- cgit v1.2.3