diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index 5870fb27e3a730820ba8b3449ad90ae6f34c1af6..07a03f031567d6bc2bcb083542aa894fd388147c 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