1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Update rotated objects in navigator

This commit is contained in:
elsid 2019-03-03 16:01:52 +03:00
parent 8c08c3c7d6
commit 80051db8f8
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -1381,7 +1381,12 @@ namespace MWWorld
ptr.getRefData().setPosition(pos);
if(ptr.getRefData().getBaseNode() != 0)
{
mWorldScene->updateObjectRotation(ptr, true);
if (const auto object = mPhysics->getObject(ptr))
updateNavigatorObject(object);
}
}
void World::adjustPosition(const Ptr &ptr, bool force)