[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58352] trunk/blender/source/blender/ collada/ArmatureImporter.cpp: Leaf bone length calculation used wrong bone tail

Gaia Clary gaia.clary at machinimatrix.org
Wed Jul 17 23:06:27 CEST 2013


Revision: 58352
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58352
Author:   gaiaclary
Date:     2013-07-17 21:06:27 +0000 (Wed, 17 Jul 2013)
Log Message:
-----------
Leaf bone length calculation used wrong bone tail

Modified Paths:
--------------
    trunk/blender/source/blender/collada/ArmatureImporter.cpp

Modified: trunk/blender/source/blender/collada/ArmatureImporter.cpp
===================================================================
--- trunk/blender/source/blender/collada/ArmatureImporter.cpp	2013-07-17 20:22:08 UTC (rev 58351)
+++ trunk/blender/source/blender/collada/ArmatureImporter.cpp	2013-07-17 21:06:27 UTC (rev 58352)
@@ -139,7 +139,7 @@
 		const float epsilon = 0.000001f;
 
 		// derive leaf bone length
-		float length = len_v3v3(parent->head, parent->tail);
+		float length = len_v3v3(parent->head, bone->head);
 		if ((length < leaf_bone_length || totbone == 0) && length > epsilon) {
 			leaf_bone_length = length;
 		}




More information about the Bf-blender-cvs mailing list