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:
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, 6 insertions, 6 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bisect_plane.c b/source/blender/bmesh/tools/bmesh_bisect_plane.c
index 83f5edb01ea..da7feff70e6 100644
--- a/source/blender/bmesh/tools/bmesh_bisect_plane.c
+++ b/source/blender/bmesh/tools/bmesh_bisect_plane.c
@@ -52,9 +52,9 @@ static short plane_point_test_v3(const float plane[4], const float co[3], const
const float f = plane_point_side_v3(plane, co);
*r_depth = f;
- if (f <= -eps) return -1;
- else if (f >= eps) return 1;
- else return 0;
+ if (f <= -eps) { return -1; }
+ else if (f >= eps) { return 1; }
+ else { return 0; }
}
@@ -98,9 +98,9 @@ static int bm_vert_sortval_cb(const void *v_a_v, const void *v_b_v)
const float val_a = BM_VERT_SORTVAL(*((BMVert **)v_a_v));
const float val_b = BM_VERT_SORTVAL(*((BMVert **)v_b_v));
- if (val_a > val_b) return 1;
- else if (val_a < val_b) return -1;
- else return 0;
+ if (val_a > val_b) { return 1; }
+ else if (val_a < val_b) { return -1; }
+ else { return 0; }
}