Build the bounding sphere in the loading thread (only relevant for TerrainGrid)

0.6.1
scrawl 8 years ago
parent 9e9c028f1d
commit b66c2abfe3

@ -222,6 +222,8 @@ osg::ref_ptr<osg::Node> ChunkManager::createChunk(float chunkSize, const osg::Ve
transform->setCullingActive(false); transform->setCullingActive(false);
geometry->setCullingActive(false); geometry->setCullingActive(false);
} }
else
transform->getBound();
if (mSceneManager->getIncrementalCompileOperation()) if (mSceneManager->getIncrementalCompileOperation())
{ {

Loading…
Cancel
Save