1
0
Fork 0

Make the position of the sun above the horizon available in the proprty tree

This commit is contained in:
ehofman 2004-01-07 09:21:35 +00:00
parent de7d16cd27
commit 519fd99106

View file

@ -133,9 +133,13 @@ void FGLight::reinit () {
}
void FGLight::bind () {
SGPropertyNode *prop = globals->get_props();
prop->tie("/sim/time/sun-pos-deg", SGRawValuePointer<double>(&_sun_angle));
}
void FGLight::unbind () {
SGPropertyNode *prop = globals->get_props();
prop->untie("/sim/time/sun-pos-deg");
}