diff options
author | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-05-21 19:10:32 +0100 |
---|---|---|
committer | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-05-21 19:10:32 +0100 |
commit | ae5f24eb4d8a215cc26ef45ababc6ddec8f28edb (patch) | |
tree | 9e64b5e79ad3cc503de5a766b863eeb07ed159ea /indra/newview/llvosky.cpp | |
parent | 589e23884f957e00328b7aa04629f47d1f070a4e (diff) |
Make rendering of sun / moon work with both in the sky (test visibility independently).
Diffstat (limited to 'indra/newview/llvosky.cpp')
-rw-r--r-- | indra/newview/llvosky.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 428493ee14..37c1e4f14e 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -696,11 +696,8 @@ BOOL LLVOSky::updateGeometry(LLDrawable *drawable) bool draw_sun = updateHeavenlyBodyGeometry(drawable, FACE_SUN, mSun, up, right); bool draw_moon = updateHeavenlyBodyGeometry(drawable, FACE_MOON, mMoon, up, right); - bool daytime = LLEnvironment::getInstance()->getIsDayTime(); - - // makeshift check until we properly handle moon in daytime - draw_sun &= daytime; - draw_moon &= !daytime; + draw_sun &= LLEnvironment::getInstance()->getIsSunUp(); + draw_moon &= LLEnvironment::getInstance()->getIsMoonUp(); mSun.setDraw(draw_sun); mMoon.setDraw(draw_moon); |