mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 00:26:39 +00:00 
			
		
		
		
	Store the current animation group
This commit is contained in:
		
							parent
							
								
									835ff8eb1e
								
							
						
					
					
						commit
						d7c9df16f8
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -441,9 +441,10 @@ void Animation::play(const std::string &groupname, const std::string &start, con
 | 
			
		|||
                Ogre::SkeletonInstance *skel = iter->mSkelBase->getSkeleton();
 | 
			
		||||
                mCurrentAnim = skel->getAnimation(groupname);
 | 
			
		||||
                mCurrentKeys = &mTextKeys[groupname];
 | 
			
		||||
                mCurrentGroup = groupname;
 | 
			
		||||
                mCurrentControllers = &iter->mControllers;
 | 
			
		||||
                mAnimVelocity = 0.0f;
 | 
			
		||||
 | 
			
		||||
                mAnimVelocity = 0.0f;
 | 
			
		||||
                if(mNonAccumRoot)
 | 
			
		||||
                    calcAnimVelocity();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,6 +53,7 @@ protected:
 | 
			
		|||
    Ogre::Vector3 mLastPosition;
 | 
			
		||||
    Ogre::Animation *mCurrentAnim;
 | 
			
		||||
 | 
			
		||||
    std::string mCurrentGroup;
 | 
			
		||||
    std::vector<Ogre::Controller<Ogre::Real> > *mCurrentControllers;
 | 
			
		||||
    NifOgre::TextKeyMap *mCurrentKeys;
 | 
			
		||||
    NifOgre::TextKeyMap::const_iterator mStartKey;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue