From 2a39b34a09702e4e64e27befc97dd6154b75ccc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 3 Jul 2020 16:09:51 +0200 Subject: Cleanup: Editors/Sculpt/Paint, Clang-Tidy else-after-return fixes This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/sculpt_paint` module. No functional changes. --- source/blender/editors/sculpt_paint/paint_vertex_color_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_vertex_color_utils.c') diff --git a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c index c26db3e265b..637ce8193c1 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c +++ b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c @@ -220,7 +220,7 @@ BLI_INLINE uint mcol_lighten(uint col_src, uint col_dst, int fac) if (fac == 0) { return col_src; } - else if (fac >= 255) { + if (fac >= 255) { return col_dst; } @@ -254,7 +254,7 @@ BLI_INLINE uint mcol_darken(uint col_src, uint col_dst, int fac) if (fac == 0) { return col_src; } - else if (fac >= 255) { + if (fac >= 255) { return col_dst; } -- cgit v1.2.3