diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 09:14:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 09:14:36 +0300 |
commit | 8d7005d7152459eb66fa33ae14eba94a0169adbb (patch) | |
tree | 78a117f4c1256dda7ce1af72f3e5b04ecbb0c4cd /source/blender/bmesh/tools/bmesh_bisect_plane.c | |
parent | e26b67fa1e13b45c395878dfc667af0b4cc458cf (diff) |
Cleanup: style, use braces for bmesh
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_bisect_plane.c')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bisect_plane.c | 12 |
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; } } |