mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-22 09:06:47 +00:00
Update rotated objects in navigator
This commit is contained in:
parent
f394ace4d5
commit
b51a54e976
1 changed files with 5 additions and 0 deletions
|
@ -1381,7 +1381,12 @@ namespace MWWorld
|
||||||
ptr.getRefData().setPosition(pos);
|
ptr.getRefData().setPosition(pos);
|
||||||
|
|
||||||
if(ptr.getRefData().getBaseNode() != 0)
|
if(ptr.getRefData().getBaseNode() != 0)
|
||||||
|
{
|
||||||
mWorldScene->updateObjectRotation(ptr, true);
|
mWorldScene->updateObjectRotation(ptr, true);
|
||||||
|
|
||||||
|
if (const auto object = mPhysics->getObject(ptr))
|
||||||
|
updateNavigatorObject(object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::adjustPosition(const Ptr &ptr, bool force)
|
void World::adjustPosition(const Ptr &ptr, bool force)
|
||||||
|
|
Loading…
Reference in a new issue