Fix for http://code.google.com/p/flightgear-bugs/issues/detail?id=478 , ensure sun-angle has a valid (default) value at init.
This commit is contained in:
parent
f51d58686a
commit
e89699acef
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ void FGLight::bind () {
|
|||
prop->tie("/rendering/scene/overcast",SGRawValuePointer<float>(&_overcast));
|
||||
|
||||
_sunAngleRad = prop->getNode("/sim/time/sun-angle-rad", true);
|
||||
|
||||
_sunAngleRad->setDoubleValue(_sun_angle);
|
||||
|
||||
// Read Only
|
||||
prop->tie("/rendering/scene/ambient/red",SGRawValuePointer<float>(&_scene_ambient[0]));
|
||||
prop->tie("/rendering/scene/ambient/green",SGRawValuePointer<float>(&_scene_ambient[1]));
|
||||
|
|
Loading…
Add table
Reference in a new issue