scenery: Allow switching off bvh generation.
This commit is contained in:
parent
32ef925a79
commit
ba21713329
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user