Merge pull request #2493 from elsid/navigator_update_rotated_objects

Update rotated world objects in navigator
pull/541/head
Andrei Kortunov 5 years ago committed by GitHub
commit 3a88620a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1458,6 +1458,9 @@ namespace MWWorld
{ {
mRendering->rotateObject(ptr, rotate); mRendering->rotateObject(ptr, rotate);
mPhysics->updateRotation(ptr); mPhysics->updateRotation(ptr);
if (const auto object = mPhysics->getObject(ptr))
updateNavigatorObject(object);
} }
} }

Loading…
Cancel
Save