Fix T56506: Different behaviour of Bounds Clamp with positive and negative axis.

Small typo on minus sign position... ;)
This commit is contained in:
Bastien Montagne 2018-08-23 14:55:40 +02:00
parent b3ac3d13a2
commit c5206e5d2f
Notes: blender-bot 2023-02-14 05:24:37 +01:00
Referenced by issue #56506, Different behaviour of Bounds Clamp with positive and negative axis
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}