From ba2171332962afafafff90f001bf3f548991bb17 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 11 Mar 2012 14:20:07 +0100 Subject: [PATCH] scenery: Allow switching off bvh generation. --- simgear/scene/model/ModelRegistry.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 2.39.5