1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00

Store the current animation group

This commit is contained in:
Chris Robinson 2013-04-21 18:32:34 -07:00
parent 835ff8eb1e
commit d7c9df16f8
2 changed files with 3 additions and 1 deletions

View file

@ -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();

View file

@ -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;