mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 23:39:41 +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)
|
: mPtr(ptr)
|
||||||
, mInsert(NULL)
|
, mInsert(NULL)
|
||||||
, mTime(0.0f)
|
, mTime(0.0f)
|
||||||
, mSkipFrame(false)
|
|
||||||
, mAnimState(NULL)
|
, mAnimState(NULL)
|
||||||
|
, mSkipFrame(false)
|
||||||
|
, mNonAccumRoot(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +63,7 @@ void Animation::createEntityList(Ogre::SceneNode *node, const std::string &model
|
||||||
if(!data.isEmpty())
|
if(!data.isEmpty())
|
||||||
{
|
{
|
||||||
mTextKeys = Ogre::any_cast<NifOgre::TextKeyMap>(data);
|
mTextKeys = Ogre::any_cast<NifOgre::TextKeyMap>(data);
|
||||||
|
mNonAccumRoot = mEntityList.mSkelBase->getSkeleton()->getBone(bone->getHandle());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,12 +31,13 @@ protected:
|
||||||
float mTime;
|
float mTime;
|
||||||
GroupTimes mCurGroup;
|
GroupTimes mCurGroup;
|
||||||
GroupTimes mNextGroup;
|
GroupTimes mNextGroup;
|
||||||
|
Ogre::AnimationState *mAnimState;
|
||||||
|
|
||||||
bool mSkipFrame;
|
bool mSkipFrame;
|
||||||
|
|
||||||
NifOgre::EntityList mEntityList;
|
NifOgre::EntityList mEntityList;
|
||||||
NifOgre::TextKeyMap mTextKeys;
|
NifOgre::TextKeyMap mTextKeys;
|
||||||
Ogre::AnimationState *mAnimState;
|
Ogre::Node *mNonAccumRoot;
|
||||||
|
|
||||||
bool findGroupTimes(const std::string &groupname, GroupTimes *times);
|
bool findGroupTimes(const std::string &groupname, GroupTimes *times);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue