simplify
This commit is contained in:
@@ -526,10 +526,9 @@ void Model::PlayAnimation( const RString &sAniName, float fPlayRate )
|
|||||||
m_pCurAnimation = pNewAnimation;
|
m_pCurAnimation = pNewAnimation;
|
||||||
|
|
||||||
// setup bones
|
// setup bones
|
||||||
unsigned nBoneCount = m_pCurAnimation->Bones.size();
|
m_vpBones.resize( m_pCurAnimation->Bones.size() );
|
||||||
m_vpBones.resize( nBoneCount );
|
|
||||||
|
|
||||||
for( unsigned i = 0; i < nBoneCount; i++ )
|
for( unsigned i = 0; i < m_pCurAnimation->Bones.size(); i++ )
|
||||||
{
|
{
|
||||||
const msBone *pBone = &m_pCurAnimation->Bones[i];
|
const msBone *pBone = &m_pCurAnimation->Bones[i];
|
||||||
const RageVector3 &vRot = pBone->Rotation;
|
const RageVector3 &vRot = pBone->Rotation;
|
||||||
|
|||||||
Reference in New Issue
Block a user