Fix-for-fix ik-spline clamp existing files too

This commit is contained in:
Campbell Barton 2014-11-04 14:03:58 +01:00
parent 176f0102ea
commit a59fab461c
1 changed files with 3 additions and 3 deletions

View File

@ -1940,13 +1940,13 @@ static void splineik_init_tree_from_pchan(Scene *scene, Object *UNUSED(ob), bPos
}
}
/* disallow negative values (happens with float precision) */
CLAMP_MIN(ikData->points[segcount], 0.0f);
/* spline has now been bound */
ikData->flag |= CONSTRAINT_SPLINEIK_BOUND;
}
/* disallow negative values (happens with float precision) */
CLAMP_MIN(ikData->points[segcount], 0.0f);
/* apply corrections for sensitivity to scaling on a copy of the bind points,
* since it's easier to determine the positions of all the joints beforehand this way
*/