Fix for OBJECT_BUILDING_MESH_DETAILED

This commit is contained in:
Stuart Buchanan
2016-11-08 19:56:08 +00:00
parent 4b571f2a24
commit dcbf5b7c11
+4 -4
View File
@@ -287,10 +287,10 @@ struct ReaderWriterSTG::_ModelBin {
bool read(const std::string& absoluteFileName, const osgDB::Options* options) bool read(const std::string& absoluteFileName, const osgDB::Options* options)
{ {
// Determine object ranges // Determine object ranges. Mesh size needs to be accounted for.
_object_range_bare = atof(options->getPluginStringData("SimGear::BARE_LOD_RANGE").c_str()); _object_range_bare = 2000.0f + atof(options->getPluginStringData("SimGear::LOD_RANGE_BARE").c_str());
_object_range_rough = atof(options->getPluginStringData("SimGear::ROUGH_LOD_RANGE").c_str()); _object_range_rough = 2000.0f + atof(options->getPluginStringData("SimGear::LOD_RANGE_ROUGH").c_str());
_object_range_detailed = atof(options->getPluginStringData("SimGear::DETAILED_LOD_RANGE").c_str()); _object_range_detailed = 2000.0f + atof(options->getPluginStringData("SimGear::LOD_RANGE_DETAILED").c_str());
_building_mesh_enabled = (options->getPluginStringData("SimGear::RENDER_BUILDING_MESH") == "true"); _building_mesh_enabled = (options->getPluginStringData("SimGear::RENDER_BUILDING_MESH") == "true");
if (absoluteFileName.empty()) if (absoluteFileName.empty())