forked from mirror/openmw-tes3mp
Remove an unneeded Animation field
This commit is contained in:
parent
f197c67e95
commit
8d6f017f17
2 changed files with 1 additions and 6 deletions
|
@ -22,7 +22,6 @@ Animation::Animation(const MWWorld::Ptr &ptr)
|
|||
, mAccumRoot(NULL)
|
||||
, mNonAccumRoot(NULL)
|
||||
, mAccumulate(Ogre::Vector3::ZERO)
|
||||
, mStartPosition(0.0f)
|
||||
, mLastPosition(0.0f)
|
||||
, mCurrentKeys(NULL)
|
||||
, mCurrentAnim(NULL)
|
||||
|
@ -135,9 +134,6 @@ void Animation::createEntityList(Ogre::SceneNode *node, const std::string &model
|
|||
{
|
||||
mAccumRoot = mInsert;
|
||||
mNonAccumRoot = skelinst->getBone(bone->getName());
|
||||
|
||||
mStartPosition = mNonAccumRoot->getInitialPosition();
|
||||
mLastPosition = mStartPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -243,7 +239,7 @@ void Animation::reset(const std::string &marker)
|
|||
if(mNonAccumRoot)
|
||||
{
|
||||
mLastPosition = mNonAccumRoot->getPosition();
|
||||
mAccumRoot->setPosition(mStartPosition*mNonAccumRoot->_getDerivedScale() - mLastPosition);
|
||||
mAccumRoot->setPosition(-mLastPosition * mAccumulate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ protected:
|
|||
Ogre::Node *mAccumRoot;
|
||||
Ogre::Bone *mNonAccumRoot;
|
||||
Ogre::Vector3 mAccumulate;
|
||||
Ogre::Vector3 mStartPosition;
|
||||
Ogre::Vector3 mLastPosition;
|
||||
|
||||
std::vector<Ogre::SkeletonPtr> mSkeletonSources;
|
||||
|
|
Loading…
Reference in a new issue