mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-04 22:20:14 +00:00
Update rotated objects in navigator
This commit is contained in:
parent
8c08c3c7d6
commit
80051db8f8
@ -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…
x
Reference in New Issue
Block a user