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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-08-23 15:56:42 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-08-23 15:56:42 +0300
commit09895cae4846181783793953bc300013dd59817b (patch)
tree9ffbaac720cf474fc6ea7103b971190e742e2737 /source/blender/blenkernel/intern/lattice.c
parentf894db794fcad2ca5be782b963f6ef32dd933f34 (diff)
parentc5206e5d2f880adf9cff8ed295be5ec160d18e0d (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blenkernel/intern/lattice.c')
-rw-r--r--source/blender/blenkernel/intern/lattice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index 04830eb1081..ca555a46da5 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -623,7 +623,7 @@ static bool calc_curve_deform(Object *par, float co[3],
if (is_neg_axis) {
index = axis - 3;
if (cu->flag & CU_STRETCH)
- fac = (-co[index] - cd->dmax[index]) / (cd->dmax[index] - cd->dmin[index]);
+ fac = -(co[index] - cd->dmax[index]) / (cd->dmax[index] - cd->dmin[index]);
else
fac = -(co[index] - cd->dmax[index]) / (par->runtime.curve_cache->path->totdist);
}