diff options
| author | Rider Linden <rider@lindenlab.com> | 2017-11-13 16:43:47 -0800 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2017-11-13 16:43:47 -0800 |
| commit | 35873f5963791af08a9951624dc96481a71fa1d7 (patch) | |
| tree | 7be29babda869025d2b4b2b9535383e58d3d99bf /indra/newview/lltoolgun.cpp | |
| parent | b227c86b450134f17ec0624655e1e4c5cb5ba89d (diff) | |
Clean up on sun and moon
Diffstat (limited to 'indra/newview/lltoolgun.cpp')
| -rw-r--r-- | indra/newview/lltoolgun.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lltoolgun.cpp b/indra/newview/lltoolgun.cpp index 6c9155be85..6903e69d46 100644 --- a/indra/newview/lltoolgun.cpp +++ b/indra/newview/lltoolgun.cpp @@ -107,8 +107,8 @@ BOOL LLToolGun::handleHover(S32 x, S32 y, MASK mask) if (gSavedSettings.getBOOL("MouseSun")) { - gSky.setSunDirection(LLViewerCamera::getInstance()->getAtAxis(), LLVector3(0.f, 0.f, 0.f)); - gSky.setOverrideSun(TRUE); + LLVector3 sunpos = LLViewerCamera::getInstance()->getAtAxis(); + gSky.setSunDirection(sunpos, -sunpos); gSavedSettings.setVector3("SkySunDefaultPosition", LLViewerCamera::getInstance()->getAtAxis()); } |
