summaryrefslogtreecommitdiff
path: root/indra/newview/llsettingssky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llsettingssky.cpp')
-rw-r--r--indra/newview/llsettingssky.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llsettingssky.cpp b/indra/newview/llsettingssky.cpp
index 024277a228..ccab35f669 100644
--- a/indra/newview/llsettingssky.cpp
+++ b/indra/newview/llsettingssky.cpp
@@ -376,9 +376,9 @@ void LLSettingsSky::calculateHeavnlyBodyPositions()
{ // set direction (in CRF) and don't allow overriding
LLVector3 crf_sunDirection(mSunDirection.mV[2], mSunDirection.mV[0], mSunDirection.mV[1]);
+ LLVector3 crf_moonDirection(mMoonDirection.mV[2], mMoonDirection.mV[0], mMoonDirection.mV[1]);
- gSky.setSunDirection(crf_sunDirection, LLVector3(0, 0, 0));
- gSky.setOverrideSun(TRUE);
+ gSky.setSunDirection(crf_sunDirection, crf_moonDirection);
}
// is the normal from the sun or the moon