Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2013-07-18 01:06:27 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2013-07-18 01:06:27 +0400
commit89f4445b446b269ba84ef1445ac29c806199386c (patch)
tree44e96cf5d5803b427dc14c591136c5ebafad4d8a /source/blender
parentf2db6949c2de2a45c5864384d14f669779a8d61a (diff)
Leaf bone length calculation used wrong bone tail
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/collada/ArmatureImporter.cpp2
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;
}