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/operators/bmo_utils.c')
-rw-r--r--source/blender/bmesh/operators/bmo_utils.c18
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++;
}