Skip to content

Commit

Permalink
Merge pull request OpenMW#2591 from akortunov/sheathing
Browse files Browse the repository at this point in the history
Do not show shields in the 1st-person view when shield sheathing is enabled
  • Loading branch information
Capostrophic authored Nov 9, 2019
2 parents f335044 + 1835a39 commit d3cd640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwrender/actoranimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool ActorAnimation::updateCarriedLeftVisible(const int weaptype) const
{
SceneUtil::FindByNameVisitor findVisitor ("Bip01 AttachShield");
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::ConstContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
Expand Down

0 comments on commit d3cd640

Please sign in to comment.