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


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to