1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 23:15:41 +00:00

Update effects even when main animation is paused (Fixes #1585)

This commit is contained in:
scrawl 2014-06-28 17:54:14 +02:00
parent f929004635
commit 10ef0a34d9
2 changed files with 5 additions and 3 deletions

View file

@ -1449,6 +1449,8 @@ void CharacterController::update(float duration)
if(mMovementAnimVelocity > 0)
world->queueMovement(mPtr, moved);
}
else if (mAnimation)
mAnimation->updateEffects(duration);
mSkipAnim = false;
}

View file

@ -226,9 +226,6 @@ public:
virtual void preRender (Ogre::Camera* camera);
virtual void setAlpha(float alpha) {}
private:
void updateEffects(float duration);
public:
void updatePtr(const MWWorld::Ptr &ptr);
@ -301,6 +298,9 @@ public:
virtual Ogre::Vector3 runAnimation(float duration);
/// This is typically called as part of runAnimation, but may be called manually if needed.
void updateEffects(float duration);
virtual void showWeapons(bool showWeapon);
virtual void showCarriedLeft(bool show) {}
virtual void attachArrow() {}