From 2496bdecfad733bf69c58474939d4a831cc16d46 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Fri, 26 Jun 2015 09:53:03 +0200 Subject: [PATCH] Tie the sun vector to the property tree --- src/Time/light.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 43e44744c..c037657b0 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -176,6 +176,11 @@ void FGLight::bind () { tie(prop,"/rendering/dome/fog/green", SGRawValuePointer(&_fog_color[1])); tie(prop,"/rendering/dome/fog/blue", SGRawValuePointer(&_fog_color[2])); + // Sun vector + tie(prop,"/ephemeris/sun/local/x", SGRawValuePointer(&_sun_vec[0])); + tie(prop,"/ephemeris/sun/local/y", SGRawValuePointer(&_sun_vec[1])); + tie(prop,"/ephemeris/sun/local/z", SGRawValuePointer(&_sun_vec[2])); + // Properties used directly by effects _chromeProps[0] = prop->getNode("/rendering/scene/chrome-light/red", true); _chromeProps[1] = prop->getNode("/rendering/scene/chrome-light/green",