[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24529] trunk/blender/source/blender/ blenkernel/intern/armature.c: Bugfix: workaround for spline IK crash with curve path not created
Brecht Van Lommel
brecht at blender.org
Thu Nov 12 16:18:02 CET 2009
Revision: 24529
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24529
Author: blendix
Date: 2009-11-12 16:18:01 +0100 (Thu, 12 Nov 2009)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/armature.c
Modified: trunk/blender/source/blender/blenkernel/intern/armature.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/armature.c 2009-11-12 15:13:47 UTC (rev 24528)
+++ trunk/blender/source/blender/blenkernel/intern/armature.c 2009-11-12 15:18:01 UTC (rev 24529)
@@ -1743,7 +1743,7 @@
/* 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
More information about the Bf-blender-cvs
mailing list