|
|
|
@ -110,6 +110,10 @@ bool ActorAnimation::updateCarriedLeftVisible(const int weaptype) const
|
|
|
|
|
const MWWorld::Class &cls = mPtr.getClass();
|
|
|
|
|
MWMechanics::CreatureStats &stats = cls.getCreatureStats(mPtr);
|
|
|
|
|
if (cls.hasInventoryStore(mPtr) && weaptype != ESM::Weapon::Spell)
|
|
|
|
|
{
|
|
|
|
|
SceneUtil::FindByNameVisitor findVisitor ("Bip01 AttachShield");
|
|
|
|
|
mObjectRoot->accept(findVisitor);
|
|
|
|
|
if (findVisitor.mFoundNode)
|
|
|
|
|
{
|
|
|
|
|
const MWWorld::InventoryStore& inv = cls.getInventoryStore(mPtr);
|
|
|
|
|
const MWWorld::ConstContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
|
|
|
@ -134,6 +138,7 @@ bool ActorAnimation::updateCarriedLeftVisible(const int weaptype) const
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return !(MWMechanics::getWeaponType(weaptype)->mFlags & ESM::WeaponType::TwoHanded);
|
|
|
|
|
}
|
|
|
|
|