1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Merge branch 'terrain' of github.com:Yacoby/openmw into terrain

This commit is contained in:
Jacob Essex 2012-02-28 16:22:19 +00:00
commit 13e3955916

View File

@ -78,13 +78,15 @@ MWRender::Player& RenderingManager::getPlayer(){
void RenderingManager::removeCell (MWWorld::Ptr::CellStore *store){ void RenderingManager::removeCell (MWWorld::Ptr::CellStore *store){
objects.removeCell(store); objects.removeCell(store);
mTerrainManager->cellRemoved(store); if (store->cell->isExterior())
mTerrainManager->cellRemoved(store);
} }
void RenderingManager::cellAdded (MWWorld::Ptr::CellStore *store) void RenderingManager::cellAdded (MWWorld::Ptr::CellStore *store)
{ {
objects.buildStaticGeometry (*store); objects.buildStaticGeometry (*store);
mTerrainManager->cellAdded(store); if (store->cell->isExterior())
mTerrainManager->cellAdded(store);
} }
void RenderingManager::addObject (const MWWorld::Ptr& ptr){ void RenderingManager::addObject (const MWWorld::Ptr& ptr){