From b66c2abfe3b714c88d7eedc9e0a4dafea4eea9bb Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 13 Mar 2017 00:13:42 +0100 Subject: [PATCH] Build the bounding sphere in the loading thread (only relevant for TerrainGrid) --- components/terrain/chunkmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/terrain/chunkmanager.cpp b/components/terrain/chunkmanager.cpp index 1d6fb9e61..bdb3b6a5f 100644 --- a/components/terrain/chunkmanager.cpp +++ b/components/terrain/chunkmanager.cpp @@ -222,6 +222,8 @@ osg::ref_ptr ChunkManager::createChunk(float chunkSize, const osg::Ve transform->setCullingActive(false); geometry->setCullingActive(false); } + else + transform->getBound(); if (mSceneManager->getIncrementalCompileOperation()) {