diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-16 13:09:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-16 13:09:34 +0300 |
commit | 758bb8c70d75ada6ea4d8317fa499bcd051e309b (patch) | |
tree | a73bdbc67402baeec1b58dbc7de3884a312a8592 /source/blender/editors/interface/interface.c | |
parent | f37a27b074607f044bdf8e54e7d92dfdac236a67 (diff) |
Clenaup: odd use of ternary operators
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 098a1e7c8a2..b76be4cf4d8 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1706,7 +1706,7 @@ int ui_but_is_pushed_ex(uiBut *but, double *value) int is_push = 0; if (but->bit) { - const bool state = ELEM(but->type, UI_BTYPE_TOGGLE_N, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_CHECKBOX_N) ? false : true; + const bool state = !ELEM(but->type, UI_BTYPE_TOGGLE_N, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_CHECKBOX_N); int lvalue; UI_GET_BUT_VALUE_INIT(but, *value); lvalue = (int)*value; |