const m_pCurAnimation
This commit is contained in:
@@ -444,7 +444,7 @@ void Model::PlayAnimation( CString sAniName, float fPlayRate )
|
||||
if( m_mapNameToAnimation.find(sAniName) == m_mapNameToAnimation.end() )
|
||||
return;
|
||||
|
||||
msAnimation *pNewAnimation = &m_mapNameToAnimation[sAniName];
|
||||
const msAnimation *pNewAnimation = &m_mapNameToAnimation[sAniName];
|
||||
|
||||
m_fCurFrame = 0;
|
||||
m_fCurAnimationRate = fPlayRate;
|
||||
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
|
||||
vector<msMaterial> m_Materials;
|
||||
map<CString,msAnimation> m_mapNameToAnimation;
|
||||
msAnimation* m_pCurAnimation;
|
||||
const msAnimation* m_pCurAnimation;
|
||||
|
||||
static void SetBones( const msAnimation* pAnimation, float fFrame, vector<myBone_t> &vpBones );
|
||||
vector<myBone_t> m_vpBones;
|
||||
|
||||
Reference in New Issue
Block a user