From 47f8c444a4d05950d6544f6d09471f808e64b4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 7 Aug 2020 12:40:29 +0200 Subject: Cleanup: Modifiers, Clang-Tidy else-after-return fixes This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/modifiers` module. No functional changes. --- source/blender/modifiers/intern/MOD_surfacedeform.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_surfacedeform.c') diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index 6a0e82a686b..c69d78f112f 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -372,9 +372,8 @@ BLI_INLINE uint nearestVert(SDefBindCalcData *const data, const float point_co[3 len_squared_v3v3(point_co, data->targetCos[edge->v2])) { return edge->v1; } - else { - return edge->v2; - } + + return edge->v2; } BLI_INLINE int isPolyValid(const float coords[][2], const uint nr) @@ -1283,7 +1282,7 @@ static void surfacedeformModifier_do(ModifierData *md, BKE_modifier_set_error(md, "Vertices changed from %u to %u", smd->numverts, numverts); return; } - else if (smd->numpoly != tnumpoly) { + if (smd->numpoly != tnumpoly) { BKE_modifier_set_error(md, "Target polygons changed from %u to %u", smd->numpoly, tnumpoly); return; } -- cgit v1.2.3