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_cursor.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c') diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 909eae64e72..892aea6048f 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -557,11 +557,9 @@ static int project_brush_radius(ViewContext *vc, float radius, const float locat /* The distance between these points is the size of the projected brush in pixels. */ return len_v2v2(p1, p2); } - else { - /* Assert because the code that sets up the vectors should disallow this. */ - BLI_assert(0); - return 0; - } + /* Assert because the code that sets up the vectors should disallow this. */ + BLI_assert(0); + return 0; } static bool sculpt_get_brush_geometry(bContext *C, -- cgit v1.2.3