forked from bartvdbraak/blender
Fix T56506: Different behaviour of Bounds Clamp with positive and negative axis.
Small typo on minus sign position... ;)
This commit is contained in:
parent
b3ac3d13a2
commit
c5206e5d2f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user