mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:10:24 +00:00
Merge pull request #2466 from Capostrophic/doll
[Regression] Avoid confusing inventory doll with player in non-uniform scaling
This commit is contained in:
commit
264a769827
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ namespace MWClass
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Race>().find(ref->mBase->mRace);
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::Race>().find(ref->mBase->mRace);
|
||||||
|
|
||||||
// Race weight should not affect 1st-person meshes, otherwise it will change hand proportions and can break aiming.
|
// Race weight should not affect 1st-person meshes, otherwise it will change hand proportions and can break aiming.
|
||||||
if (ptr == MWMechanics::getPlayer() && MWBase::Environment::get().getWorld()->isFirstPerson())
|
if (ptr == MWMechanics::getPlayer() && ptr.isInCell() && MWBase::Environment::get().getWorld()->isFirstPerson())
|
||||||
{
|
{
|
||||||
if (ref->mBase->isMale())
|
if (ref->mBase->isMale())
|
||||||
scale *= race->mData.mHeight.mMale;
|
scale *= race->mData.mHeight.mMale;
|
||||||
|
|
Loading…
Reference in a new issue