Bugfix: workaround for spline IK crash with curve path not created

yet, this is actually a depsgraph issue .. so instead of crashing it
will not update correct on file load now.
This commit is contained in:
Brecht Van Lommel 2009-11-12 15:18:01 +00:00
parent aeca8f6a35
commit 17b6dfa499
1 changed files with 1 additions and 1 deletions

View File

@ -1743,7 +1743,7 @@ static void splineik_init_tree_from_pchan(Object *ob, bPoseChannel *pchan_tip)
/* get the current length of the curve */
// NOTE: this is assumed to be correct even after the curve was resized
splineLen= cu->path->totdist;
splineLen= (cu->path)? cu->path->totdist: 1.0f;
/* calculate the scale factor to multiply all the path values by so that the
* bone chain retains its current length, such that