1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Terrain: restore IncrementalCompileOperation

This commit is contained in:
scrawl 2015-11-06 20:22:07 +01:00
parent 7ca8e45d5d
commit 72252d4f32

View file

@ -171,6 +171,12 @@ osg::ref_ptr<osg::Node> TerrainGrid::buildTerrain (osg::Group* parent, float chu
transform->addChild(effect); transform->addChild(effect);
effect->addChild(geode); effect->addChild(geode);
if (mIncrementalCompileOperation)
{
mIncrementalCompileOperation->add(geode);
mIncrementalCompileOperation->add(textureCompileDummy);
}
return transform; return transform;
} }
} }
@ -197,16 +203,6 @@ void TerrainGrid::loadCell(int x, int y)
geode->accept(*mKdTreeBuilder); geode->accept(*mKdTreeBuilder);
*/ */
/*
if (mIncrementalCompileOperation)
{
mIncrementalCompileOperation->add(geode);
mIncrementalCompileOperation->add(textureCompileDummy);
}
*/
mGrid[std::make_pair(x,y)] = element.release(); mGrid[std::make_pair(x,y)] = element.release();
} }