diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-07-18 01:06:27 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-07-18 01:06:27 +0400 |
commit | 89f4445b446b269ba84ef1445ac29c806199386c (patch) | |
tree | 44e96cf5d5803b427dc14c591136c5ebafad4d8a /source | |
parent | f2db6949c2de2a45c5864384d14f669779a8d61a (diff) |
Leaf bone length calculation used wrong bone tail
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/collada/ArmatureImporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp index 5c69c7b1e63..eb92b089f48 100644 --- a/source/blender/collada/ArmatureImporter.cpp +++ b/source/blender/collada/ArmatureImporter.cpp @@ -139,7 +139,7 @@ void ArmatureImporter::create_bone(SkinInfo *skin, COLLADAFW::Node *node, EditBo 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; } |