1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00

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

This commit is contained in:
scrawl 2017-03-13 00:13:42 +01:00
parent 9e9c028f1d
commit b66c2abfe3

View file

@ -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())
{ {