mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
Merge pull request #2591 from akortunov/sheathing
Do not show shields in the 1st-person view when shield sheathing is enabled
This commit is contained in:
commit
d3cd6403fe
@ -113,7 +113,7 @@ bool ActorAnimation::updateCarriedLeftVisible(const int weaptype) const
|
|||||||
{
|
{
|
||||||
SceneUtil::FindByNameVisitor findVisitor ("Bip01 AttachShield");
|
SceneUtil::FindByNameVisitor findVisitor ("Bip01 AttachShield");
|
||||||
mObjectRoot->accept(findVisitor);
|
mObjectRoot->accept(findVisitor);
|
||||||
if (findVisitor.mFoundNode)
|
if (findVisitor.mFoundNode || (mPtr == MWMechanics::getPlayer() && mPtr.isInCell() && MWBase::Environment::get().getWorld()->isFirstPerson()))
|
||||||
{
|
{
|
||||||
const MWWorld::InventoryStore& inv = cls.getInventoryStore(mPtr);
|
const MWWorld::InventoryStore& inv = cls.getInventoryStore(mPtr);
|
||||||
const MWWorld::ConstContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
const MWWorld::ConstContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user