Fixed mesh animating modifying template skeleton

Former-commit-id: d70bd2ed7c8a38f879641a4b22be4876f6825edb
This commit is contained in:
Lynix
2012-12-09 01:45:34 +01:00
parent b652bada13
commit 37d6b71036
4 changed files with 19 additions and 5 deletions

View File

@@ -112,6 +112,11 @@ nzSceneNodeType NzModel::GetSceneNodeType() const
return nzSceneNodeType_Model;
}
NzSkeleton* NzModel::GetSkeleton()
{
return &m_skeleton;
}
const NzSkeleton* NzModel::GetSkeleton() const
{
return &m_skeleton;
@@ -419,5 +424,5 @@ void NzModel::Update(float elapsedTime)
}
}
m_mesh->Animate(m_animation, m_currentFrame, m_nextFrame, m_interpolation);
m_mesh->Animate(m_animation, m_currentFrame, m_nextFrame, m_interpolation, &m_skeleton);
}