From 413884dfc5b0a0eb38a025685e0e3da5a9f1efce Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Thu, 22 Aug 2019 21:48:20 +0300 Subject: SL-11776 Fixed moon's comparison condition --- indra/newview/llvosky.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 408da88c3f..37b685f731 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -736,7 +736,9 @@ bool LLVOSky::updateSky() LLVector3 direction = mSun.getDirection(); direction.normalize(); const F32 dot_sun = direction * mLastSunLightingDirection; - const F32 dot_moon = direction * mLastMoonLightingDirection; + LLVector3 moon_direction = mMoon.getDirection(); + moon_direction.normalize(); + const F32 dot_moon = moon_direction * mLastMoonLightingDirection; LLColor3 delta_color; delta_color.setVec(mLastTotalAmbient.mV[0] - total_ambient.mV[0], -- cgit v1.2.3