forked from bartvdbraak/blender
Leaf bone length calculation used wrong bone tail
This commit is contained in:
parent
f2db6949c2
commit
89f4445b44
@ -139,7 +139,7 @@ void ArmatureImporter::create_bone(SkinInfo *skin, COLLADAFW::Node *node, EditBo
|
|||||||
const float epsilon = 0.000001f;
|
const float epsilon = 0.000001f;
|
||||||
|
|
||||||
// derive leaf bone length
|
// 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) {
|
if ((length < leaf_bone_length || totbone == 0) && length > epsilon) {
|
||||||
leaf_bone_length = length;
|
leaf_bone_length = length;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user