1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 15:53:54 +00:00

Store the NonAccum animation root from the skeleton instance

Currently this is assumed to be the node with the animation text keys.
This commit is contained in:
Chris Robinson 2013-01-06 17:31:53 -08:00
parent b96a979719
commit 910619eb21
2 changed files with 5 additions and 2 deletions

View file

@ -14,8 +14,9 @@ Animation::Animation(const MWWorld::Ptr &ptr)
: mPtr(ptr)
, mInsert(NULL)
, mTime(0.0f)
, mSkipFrame(false)
, mAnimState(NULL)
, mSkipFrame(false)
, mNonAccumRoot(NULL)
{
}
@ -62,6 +63,7 @@ void Animation::createEntityList(Ogre::SceneNode *node, const std::string &model
if(!data.isEmpty())
{
mTextKeys = Ogre::any_cast<NifOgre::TextKeyMap>(data);
mNonAccumRoot = mEntityList.mSkelBase->getSkeleton()->getBone(bone->getHandle());
break;
}
}

View file

@ -31,12 +31,13 @@ protected:
float mTime;
GroupTimes mCurGroup;
GroupTimes mNextGroup;
Ogre::AnimationState *mAnimState;
bool mSkipFrame;
NifOgre::EntityList mEntityList;
NifOgre::TextKeyMap mTextKeys;
Ogre::AnimationState *mAnimState;
Ogre::Node *mNonAccumRoot;
bool findGroupTimes(const std::string &groupname, GroupTimes *times);