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/operators/bmo_utils.c | |
parent | e26b67fa1e13b45c395878dfc667af0b4cc458cf (diff) |
Cleanup: style, use braces for bmesh
Diffstat (limited to 'source/blender/bmesh/operators/bmo_utils.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_utils.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/bmesh/operators/bmo_utils.c b/source/blender/bmesh/operators/bmo_utils.c index 3e99d5fb814..2439b5fe2b2 100644 --- a/source/blender/bmesh/operators/bmo_utils.c +++ b/source/blender/bmesh/operators/bmo_utils.c @@ -399,24 +399,30 @@ void bmo_smooth_vert_exec(BMesh *UNUSED(bm), BMOperator *op) mul_v3_fl(co, 1.0f / (float)j); interp_v3_v3v3(co, v->co, co, fac); - if (clipx && fabsf(v->co[0]) <= clip_dist) + if (clipx && fabsf(v->co[0]) <= clip_dist) { co[0] = 0.0f; - if (clipy && fabsf(v->co[1]) <= clip_dist) + } + if (clipy && fabsf(v->co[1]) <= clip_dist) { co[1] = 0.0f; - if (clipz && fabsf(v->co[2]) <= clip_dist) + } + if (clipz && fabsf(v->co[2]) <= clip_dist) { co[2] = 0.0f; + } i++; } i = 0; BMO_ITER (v, &siter, op->slots_in, "verts", BM_VERT) { - if (xaxis) + if (xaxis) { v->co[0] = cos[i][0]; - if (yaxis) + } + if (yaxis) { v->co[1] = cos[i][1]; - if (zaxis) + } + if (zaxis) { v->co[2] = cos[i][2]; + } i++; } |