diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-29 03:37:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-29 03:37:00 +0300 |
commit | 60a2038fbaaf78b3019e6375e28904f2a124e78d (patch) | |
tree | ef6502dfa2c1f685671d65c26b26084f1facd7ee /source/blender/editors/interface | |
parent | 515d9f9a355b98c6c4af7d8d0b5ada169e4bdd0f (diff) |
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 9e5e1a33564..d2204c17e62 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2108,7 +2108,8 @@ int ui_but_is_pushed_ex(uiBut *but, double *value) if (but->pushed_state_func) { return but->pushed_state_func(but, but->pushed_state_arg); } - else if (but->bit) { + + if (but->bit) { const bool state = !ELEM( but->type, UI_BTYPE_TOGGLE_N, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_CHECKBOX_N); int lvalue; |