Fixed possible bug with MD5 bind-pose translation
Former-commit-id: 3ef6eba4944db249a8cbb3d6fb5dad2abe87fd6a
This commit is contained in:
parent
ec50ab9fd4
commit
d5dc07f3ef
|
|
@ -170,7 +170,7 @@ bool NzMD5MeshParser::Parse(NzMesh* mesh)
|
|||
|
||||
NzMatrix4f bindMatrix;
|
||||
bindMatrix.MakeRotation((parent >= 0) ? m_joints[i].bindOrient : rotationQuat * m_joints[i].bindOrient);
|
||||
bindMatrix.SetTranslation(m_joints[i].bindPos); // Plus rapide que de multiplier par une matrice de translation
|
||||
bindMatrix.SetTranslation((parent >= 0) ? m_joints[i].bindPos : rotationQuat * m_joints[i].bindPos); // Plus rapide que de multiplier par une matrice de translation
|
||||
|
||||
joint->SetInverseBindMatrix(bindMatrix.InverseAffine());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue