From 43d9f3d5c7b6f4e0665bfbdb4583f7d672346b08 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 8 Feb 2017 18:52:46 +0100 Subject: [PATCH] Update bullet debug drawer even when the game is paused so the collision mesh will show instantly even when the console is up --- apps/openmw/mwworld/worldimp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 4e43d0268..babe6baa1 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -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 ();