Fix layout.prop invert_checkbox not working combined with icons
Contributed by Valentin (Poulpator). Differential Revision: https://developer.blender.org/D7027
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user