Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-07-03 15:37:53 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-07-03 15:48:37 +0300
commit20869065b86263f72e469df17354bd6631be3712 (patch)
tree9f1aaaa7fecc62200ab48ef551df2510711a2cd7 /source/blender/bmesh/tools/bmesh_bisect_plane.c
parentf3b8792b963b0b2a00fe7fe173f1beb85c209fbb (diff)
Cleanup: BMesh, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/bmesh` module. No functional changes.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_bisect_plane.c')
-rw-r--r--source/blender/bmesh/tools/bmesh_bisect_plane.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bisect_plane.c b/source/blender/bmesh/tools/bmesh_bisect_plane.c
index 7b6a820ea33..85de065daff 100644
--- a/source/blender/bmesh/tools/bmesh_bisect_plane.c
+++ b/source/blender/bmesh/tools/bmesh_bisect_plane.c
@@ -57,12 +57,10 @@ static short plane_point_test_v3(const float plane[4],
if (f <= -eps) {
return -1;
}
- else if (f >= eps) {
+ if (f >= eps) {
return 1;
}
- else {
- return 0;
- }
+ return 0;
}
/* -------------------------------------------------------------------- */
@@ -135,12 +133,10 @@ static int bm_vert_sortval_cb(const void *v_a_v, const void *v_b_v)
if (val_a > val_b) {
return 1;
}
- else if (val_a < val_b) {
+ if (val_a < val_b) {
return -1;
}
- else {
- return 0;
- }
+ return 0;
}
static void bm_face_bisect_verts(