diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 08:14:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 08:34:32 +0300 |
commit | c9e35c2ced92082c86f1ecb9ecd16c6230218c7c (patch) | |
tree | 24bd862961d2bbfa022cfc3c5262cfe1e63550b3 /source/blender/editors/interface/interface_widgets.c | |
parent | 865894481ce76325d817533c654bda2ce2e65c66 (diff) |
Cleanup: remove redundant double parenthesis
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 842201894a3..1b13632b131 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -1371,7 +1371,7 @@ static void widget_draw_icon( alpha = 0.75f; } } - else if ((but->type == UI_BTYPE_LABEL)) { + else if (but->type == UI_BTYPE_LABEL) { /* extra feature allows more alpha blending */ if (but->a1 == 1.0f) { alpha *= but->a2; @@ -1422,7 +1422,7 @@ static void widget_draw_icon( if (ui_but_drag_is_draggable(but) && (but->flag & UI_ACTIVE)) { UI_icon_draw_ex(xs, ys, icon, aspect, 1.25f, 0.0f, color, has_theme); } - else if ((but->flag & (UI_ACTIVE | UI_SELECT | UI_SELECT_DRAW))) { + else if (but->flag & (UI_ACTIVE | UI_SELECT | UI_SELECT_DRAW)) { UI_icon_draw_ex(xs, ys, icon, aspect, alpha, 0.0f, color, has_theme); } else if (!((but->icon != ICON_NONE) && UI_but_is_tool(but))) { |