From 24c1129140dd1a04ac8a9fe5d6b0a17387b49304 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 19 Dec 2013 17:18:09 +0000 Subject: [PATCH] Bugfix: avoid sky colour errors when vis < 1000m (needs the accompanying Simgear change in SGSky) --- src/Environment/environment_mgr.cxx | 8 -------- src/Viewer/renderer.cxx | 1 - 2 files changed, 9 deletions(-) diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index 9b456a9a4..27066408e 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -222,14 +222,6 @@ FGEnvironmentMgr::bind () &SGSky::get_3dCloudUseImpostors, &SGSky::set_3dCloudUseImpostors); - _tiedProperties.Tie("minimum-sky-visibility", _sky, - &SGSky::get_minimum_sky_visibility, - &SGSky::set_minimum_sky_visibility); - -// _tiedProperties.Tie("lightning-enable", &sgEnviro, -// &SGEnviro::get_lightning_enable_state, -// &SGEnviro::set_lightning_enable_state); - } void diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 8eaabc00a..cc47f80b3 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -610,7 +610,6 @@ FGRenderer::init( void ) if (!_classicalRenderer) { eventHandler->setChangeStatsCameraRenderOrder( true ); - _sky->set_minimum_sky_visibility( 0.0 ); // A black sky appears for below that } }