scenery: Allow switching off bvh generation.

This commit is contained in:
Mathias Froehlich 2012-03-11 14:20:07 +01:00
parent 32ef925a79
commit ba21713329

View File

@ -95,6 +95,7 @@ public:
optimizedNode = _optimizePolicy.optimize(processedNode.get(), optimizedNode = _optimizePolicy.optimize(processedNode.get(),
fileName, opt); fileName, opt);
} }
if (opt->getPluginStringData("SimGear::BOUNDINGVOLUMES") != "OFF")
_bvhPolicy.buildBVH(fileName, optimizedNode.get()); _bvhPolicy.buildBVH(fileName, optimizedNode.get());
_cachePolicy.addToCache(fileName, optimizedNode.get()); _cachePolicy.addToCache(fileName, optimizedNode.get());
} }