From: Torsten Dreyer Date: Fri, 9 Mar 2012 20:00:23 +0000 (+0100) Subject: bind the sky disable cutoff distance to a property X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25c6e8acbd8cf719339176ad7b7b519196c805c0;p=flightgear.git bind the sky disable cutoff distance to a property There used to be a hardcoded visibility of 1000m below which the sky was disabled. This distance is now bound to /sim/rendering/minimum-sky-visibility with a default value of 1000 --- diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index 606a3e74c..cc74f9955 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -242,6 +242,10 @@ 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);