mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 03:45:32 +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();
|
Ogre::SkeletonInstance *skel = iter->mSkelBase->getSkeleton();
|
||||||
mCurrentAnim = skel->getAnimation(groupname);
|
mCurrentAnim = skel->getAnimation(groupname);
|
||||||
mCurrentKeys = &mTextKeys[groupname];
|
mCurrentKeys = &mTextKeys[groupname];
|
||||||
|
mCurrentGroup = groupname;
|
||||||
mCurrentControllers = &iter->mControllers;
|
mCurrentControllers = &iter->mControllers;
|
||||||
mAnimVelocity = 0.0f;
|
|
||||||
|
|
||||||
|
mAnimVelocity = 0.0f;
|
||||||
if(mNonAccumRoot)
|
if(mNonAccumRoot)
|
||||||
calcAnimVelocity();
|
calcAnimVelocity();
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ protected:
|
||||||
Ogre::Vector3 mLastPosition;
|
Ogre::Vector3 mLastPosition;
|
||||||
Ogre::Animation *mCurrentAnim;
|
Ogre::Animation *mCurrentAnim;
|
||||||
|
|
||||||
|
std::string mCurrentGroup;
|
||||||
std::vector<Ogre::Controller<Ogre::Real> > *mCurrentControllers;
|
std::vector<Ogre::Controller<Ogre::Real> > *mCurrentControllers;
|
||||||
NifOgre::TextKeyMap *mCurrentKeys;
|
NifOgre::TextKeyMap *mCurrentKeys;
|
||||||
NifOgre::TextKeyMap::const_iterator mStartKey;
|
NifOgre::TextKeyMap::const_iterator mStartKey;
|
||||||
|
|
Loading…
Reference in a new issue