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

Update bullet debug drawer even when the game is paused so the collision mesh will show instantly even when the console is up

This commit is contained in:
scrawl 2017-02-08 18:52:46 +01:00
parent 249fe9077b
commit 43d9f3d5c7

View file

@ -1442,8 +1442,6 @@ namespace MWWorld
}
if(player != results.end())
moveObjectImp(player->first, player->second.x(), player->second.y(), player->second.z(), false);
mPhysics->debugDraw();
}
bool World::castRay (float x1, float y1, float z1, float x2, float y2, float z2)
@ -1617,6 +1615,8 @@ namespace MWWorld
if (!paused)
doPhysics (duration);
mPhysics->debugDraw();
mWorldScene->update (duration, paused);
updateWindowManager ();