mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 19:11:33 +00:00
Update actor model only when in the current cell
This commit is contained in:
parent
ef8360f346
commit
baf13483c0
2 changed files with 4 additions and 1 deletions
|
@ -253,6 +253,8 @@ namespace MWGui
|
||||||
|
|
||||||
void InventoryWindow::open()
|
void InventoryWindow::open()
|
||||||
{
|
{
|
||||||
|
mPtr = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||||
|
|
||||||
updateEncumbranceBar();
|
updateEncumbranceBar();
|
||||||
|
|
||||||
mItemView->update();
|
mItemView->update();
|
||||||
|
|
|
@ -2138,6 +2138,7 @@ namespace MWWorld
|
||||||
|
|
||||||
void World::updateAnimParts(const Ptr& actor)
|
void World::updateAnimParts(const Ptr& actor)
|
||||||
{
|
{
|
||||||
mRendering->updateAnimParts(actor);
|
if (actor.mCell && actor.mCell == mWorldScene->getCurrentCell())
|
||||||
|
mRendering->updateAnimParts(actor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue