mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +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
@ -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…
x
Reference in New Issue
Block a user