mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 07:39:40 +00:00
# Minor optimisations and features.
Made CMatrix3D::Translate assume something sensible about the structure of the matrix, so it doesn't have to do a matrix multiplication. Added quaternion nlerp (but haven't used it anywhere). Changed animation interpolation so it loops smoothly in the actor viewer but (hopefully) doesn't interpolate dying units into a half-upright pose. This was SVN commit r4932.
This commit is contained in:
@@ -325,7 +325,7 @@ void CModel::ValidatePosition()
|
||||
|
||||
debug_assert(m_pModelDef->GetNumBones() == m_Anim->m_AnimDef->GetNumKeys());
|
||||
|
||||
m_Anim->m_AnimDef->BuildBoneMatrices(m_AnimTime,m_BoneMatrices);
|
||||
m_Anim->m_AnimDef->BuildBoneMatrices(m_AnimTime, m_BoneMatrices, !(m_Flags & MODELFLAG_NOLOOPANIMATION));
|
||||
|
||||
const CMatrix3D& transform=GetTransform();
|
||||
for (size_t i=0;i<m_pModelDef->GetNumBones();i++) {
|
||||
|
||||
Reference in New Issue
Block a user