forked from bartvdbraak/blender
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:
parent
aeca8f6a35
commit
17b6dfa499
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user