mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:53:51 +00:00
Update weapon and shield controllers for creatures
This commit is contained in:
parent
8b340ddd5e
commit
6a900e0aad
1 changed files with 12 additions and 0 deletions
|
@ -184,6 +184,18 @@ Ogre::Vector3 CreatureWeaponAnimation::runAnimation(float duration)
|
||||||
{
|
{
|
||||||
Ogre::Vector3 ret = Animation::runAnimation(duration);
|
Ogre::Vector3 ret = Animation::runAnimation(duration);
|
||||||
pitchSkeleton(mPtr.getRefData().getPosition().rot[0], mSkelBase->getSkeleton());
|
pitchSkeleton(mPtr.getRefData().getPosition().rot[0], mSkelBase->getSkeleton());
|
||||||
|
|
||||||
|
if (!mWeapon.isNull())
|
||||||
|
{
|
||||||
|
for (unsigned int i=0; i<mWeapon->mControllers.size(); ++i)
|
||||||
|
mWeapon->mControllers[i].update();
|
||||||
|
}
|
||||||
|
if (!mShield.isNull())
|
||||||
|
{
|
||||||
|
for (unsigned int i=0; i<mShield->mControllers.size(); ++i)
|
||||||
|
mShield->mControllers[i].update();
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue