diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-08-23 15:55:40 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-08-23 15:55:40 +0300 |
commit | c5206e5d2f880adf9cff8ed295be5ec160d18e0d (patch) | |
tree | 53fd7e404554cedb0a8fd603e380c5d45447673e /source/blender | |
parent | b3ac3d13a2abdb3bd15b677b4e478a83118f4c0a (diff) |
Fix T56506: Different behaviour of Bounds Clamp with positive and negative axis.
Small typo on minus sign position... ;)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/lattice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c index b02396e5296..582743acff4 100644 --- a/source/blender/blenkernel/intern/lattice.c +++ b/source/blender/blenkernel/intern/lattice.c @@ -624,7 +624,7 @@ static bool calc_curve_deform(Scene *scene, 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->curve_cache->path->totdist); } |