From 519fd99106e7068511956e6ac9f03dde3a831bc2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 7 Jan 2004 09:21:35 +0000 Subject: [PATCH] Make the position of the sun above the horizon available in the proprty tree --- src/Time/light.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 733cea6c1..6b88cca94 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -133,9 +133,13 @@ void FGLight::reinit () { } void FGLight::bind () { + SGPropertyNode *prop = globals->get_props(); + prop->tie("/sim/time/sun-pos-deg", SGRawValuePointer(&_sun_angle)); } void FGLight::unbind () { + SGPropertyNode *prop = globals->get_props(); + prop->untie("/sim/time/sun-pos-deg"); } -- 2.39.2