mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 12:32:36 +00:00
Reset ammo when switching view to avoid warnings spam
This commit is contained in:
parent
297898182b
commit
47af221f10
@ -363,6 +363,7 @@ void NpcAnimation::setViewMode(NpcAnimation::ViewMode viewMode)
|
|||||||
mViewMode = viewMode;
|
mViewMode = viewMode;
|
||||||
MWBase::Environment::get().getWorld()->scaleObject(mPtr, mPtr.getCellRef().getScale()); // apply race height after view change
|
MWBase::Environment::get().getWorld()->scaleObject(mPtr, mPtr.getCellRef().getScale()); // apply race height after view change
|
||||||
|
|
||||||
|
mAmmunition.reset();
|
||||||
rebuild();
|
rebuild();
|
||||||
setRenderBin();
|
setRenderBin();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user