From 8730b61362fdee33869a2ac1870fb0aa69a5534c Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 17 Feb 2014 15:00:01 +0100 Subject: [PATCH] Render maps after *all* cells have finished loading Still not fixing Bug #772, but at least this will allow for background loading of terrain. --- apps/openmw/mwworld/scene.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index a6493ecf84..40004807b4 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -162,8 +162,6 @@ namespace MWWorld mRendering.cellAdded (cell); mRendering.configureAmbient(*cell); - mRendering.requestMap(cell); - mRendering.configureAmbient(*cell); } // register local scripts @@ -198,6 +196,9 @@ namespace MWWorld mechMgr->watchActor(player); MWBase::Environment::get().getWindowManager()->changeCell(mCurrentCell); + + for (CellStoreCollection::iterator active = mActiveCells.begin(); active!=mActiveCells.end(); ++active) + mRendering.requestMap(*active); } void Scene::changeToVoid()