From 48ed3f9318cf3750f1c4f72d1e7195f06d06e53c Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Thu, 25 Apr 2019 11:46:56 -0700 Subject: Put warnings on sun/moon direction as they were. --- indra/llinventory/llsettingssky.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'indra') diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index 5870fb27e3..07a03f0315 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -993,16 +993,10 @@ void LLSettingsSky::calculateHeavenlyBodyPositions() const mSunDirection.normalize(); mMoonDirection.normalize(); - // find out about degen math earlier rather than later - if (mSunDirection.lengthSquared() < 0.9f) - { - LL_WARNS("SETTINGS") << "Invalid sun direction." << LL_ENDL; - } - - if (mMoonDirection.lengthSquared() < 0.9f) - { - LL_WARNS("SETTINGS") << "Invalid moon direction." << LL_ENDL; - } + if (mSunDirection.lengthSquared() < 0.01f) + LL_WARNS("SETTINGS") << "Zero length sun direction. Wailing and gnashing of teeth may follow... or not." << LL_ENDL; + if (mMoonDirection.lengthSquared() < 0.01f) + LL_WARNS("SETTINGS") << "Zero length moon direction. Wailing and gnashing of teeth may follow... or not." << LL_ENDL; } LLVector3 LLSettingsSky::getLightDirection() const -- cgit v1.2.3