mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Update weapon and shield controllers for creatures
This commit is contained in:
parent
8b340ddd5e
commit
6a900e0aad
@ -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 New Issue
Block a user