fix T50118: Added missing assignment of Bone Roll

This commit is contained in:
Gaia Clary
2016-11-26 18:48:50 +01:00
parent 265e5def76
commit d464a7c441

View File

@@ -169,6 +169,7 @@ int ArmatureImporter::create_bone(SkinInfo *skin, COLLADAFW::Node *node, EditBon
float angle;
mat4_to_loc_rot_size(loc, rot, size, mat);
mat3_to_vec_roll(rot, NULL, &angle);
bone->roll = angle;
}
copy_v3_v3(bone->head, mat[3]);
add_v3_v3v3(bone->tail, bone->head, tail); //tail must be non zero