From 15792583209918be8937fc38e72ac70fedaf6485 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 14 Jan 2021 20:08:15 +0000 Subject: [PATCH] WS3.0: Remove setLODScale property This scales all LOD ranges and was added in an attempt to control WS3.0 LOD ranges. However it badly impacts WS2.0 draw distances, and is not the right solution for WS3.0. So removing. --- src/Viewer/CameraGroup.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Viewer/CameraGroup.cxx b/src/Viewer/CameraGroup.cxx index 4538a0373..042b38cc3 100644 --- a/src/Viewer/CameraGroup.cxx +++ b/src/Viewer/CameraGroup.cxx @@ -142,13 +142,11 @@ public: _cameraGroup(cg) { listenToNode("znear", 0.1f); listenToNode("zfar", 120000.0f); - listenToNode("lod", 1.5f); } virtual ~CameraGroupListener() { unlisten("znear"); unlisten("zfar"); - unlisten("lod"); } virtual void valueChanged(SGPropertyNode* prop) { @@ -156,9 +154,6 @@ public: _cameraGroup->_zNear = prop->getFloatValue(); } else if (!strcmp(prop->getName(), "zfar")) { _cameraGroup->_zFar = prop->getFloatValue(); - } else if (!strcmp(prop->getName(), "lod")) { - const float new_lod = prop->getFloatValue(); - _cameraGroup->_viewer->getCamera()->setLODScale(new_lod); } } private: