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,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());