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

coverity_scan^2
scrawl 8 years ago
parent 249fe9077b
commit 43d9f3d5c7

@ -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 ();

Loading…
Cancel
Save