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/blenlib/intern/jitter_2d.c')
-rw-r--r--source/blender/blenlib/intern/jitter_2d.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/jitter_2d.c b/source/blender/blenlib/intern/jitter_2d.c
index 0a1ee08776e..bbf1948be4d 100644
--- a/source/blender/blenlib/intern/jitter_2d.c
+++ b/source/blender/blenlib/intern/jitter_2d.c
@@ -104,17 +104,17 @@ void BLI_jitterate2(float (*jit1)[2], float (*jit2)[2], int num, float rad2)
vecx = jit1[j][0] - x - 1.0f;
vecy = jit1[j][1] - y - 1.0f;
- if (fabsf(vecx) < rad2) dvecx += vecx * rad2;
+ if (fabsf(vecx) < rad2) { dvecx += vecx * rad2; }
vecx += 1.0f;
- if (fabsf(vecx) < rad2) dvecx += vecx * rad2;
+ if (fabsf(vecx) < rad2) { dvecx += vecx * rad2; }
vecx += 1.0f;
- if (fabsf(vecx) < rad2) dvecx += vecx * rad2;
+ if (fabsf(vecx) < rad2) { dvecx += vecx * rad2; }
- if (fabsf(vecy) < rad2) dvecy += vecy * rad2;
+ if (fabsf(vecy) < rad2) { dvecy += vecy * rad2; }
vecy += 1.0f;
- if (fabsf(vecy) < rad2) dvecy += vecy * rad2;
+ if (fabsf(vecy) < rad2) { dvecy += vecy * rad2; }
vecy += 1.0f;
- if (fabsf(vecy) < rad2) dvecy += vecy * rad2;
+ if (fabsf(vecy) < rad2) { dvecy += vecy * rad2; }
}
}