Make the position of the sun above the horizon available in the proprty tree
This commit is contained in:
parent
de7d16cd27
commit
519fd99106
1 changed files with 4 additions and 0 deletions
|
@ -133,9 +133,13 @@ void FGLight::reinit () {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FGLight::bind () {
|
void FGLight::bind () {
|
||||||
|
SGPropertyNode *prop = globals->get_props();
|
||||||
|
prop->tie("/sim/time/sun-pos-deg", SGRawValuePointer<double>(&_sun_angle));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FGLight::unbind () {
|
void FGLight::unbind () {
|
||||||
|
SGPropertyNode *prop = globals->get_props();
|
||||||
|
prop->untie("/sim/time/sun-pos-deg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue