From: Mathias Froehlich Date: Sun, 11 Mar 2012 13:20:07 +0000 (+0100) Subject: scenery: Allow switching off bvh generation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba2171332962afafafff90f001bf3f548991bb17;p=simgear.git scenery: Allow switching off bvh generation. --- diff --git a/simgear/scene/model/ModelRegistry.hxx b/simgear/scene/model/ModelRegistry.hxx index 24e78eb2..8c8e7467 100644 --- a/simgear/scene/model/ModelRegistry.hxx +++ b/simgear/scene/model/ModelRegistry.hxx @@ -95,7 +95,8 @@ public: optimizedNode = _optimizePolicy.optimize(processedNode.get(), fileName, opt); } - _bvhPolicy.buildBVH(fileName, optimizedNode.get()); + if (opt->getPluginStringData("SimGear::BOUNDINGVOLUMES") != "OFF") + _bvhPolicy.buildBVH(fileName, optimizedNode.get()); _cachePolicy.addToCache(fileName, optimizedNode.get()); } return ReaderWriter::ReadResult(optimizedNode.get());