Model::Update no longer skin mesh
Former-commit-id: 4179cdac6d14941c4e8c00eecb943779451246d1
This commit is contained in:
parent
00d636fb1c
commit
ba9ad75f58
|
|
@ -408,13 +408,8 @@ void NzModel::SetSequence(unsigned int sequenceIndex)
|
||||||
|
|
||||||
void NzModel::Update(float elapsedTime)
|
void NzModel::Update(float elapsedTime)
|
||||||
{
|
{
|
||||||
#if NAZARA_3D_SAFE
|
|
||||||
if (!m_animation)
|
if (!m_animation)
|
||||||
{
|
|
||||||
NazaraError("Model has no animation");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
m_interpolation += m_currentSequence->frameRate * elapsedTime;
|
m_interpolation += m_currentSequence->frameRate * elapsedTime;
|
||||||
while (m_interpolation > 1.f)
|
while (m_interpolation > 1.f)
|
||||||
|
|
@ -442,5 +437,5 @@ void NzModel::Update(float elapsedTime)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_mesh->Animate(m_animation, m_currentFrame, m_nextFrame, m_interpolation, &m_skeleton);
|
m_animation->AnimateSkeleton(&m_skeleton, m_currentFrame, m_nextFrame, m_interpolation);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue