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:
parent
b96a979719
commit
910619eb21
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue