diff options
| author | Graham Linden <graham@lindenlab.com> | 2019-04-25 11:46:56 -0700 | 
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2019-04-25 11:46:56 -0700 | 
| commit | 48ed3f9318cf3750f1c4f72d1e7195f06d06e53c (patch) | |
| tree | ea30ac289e5089ec1e1b9ceab6d2d87d986669c9 /indra/llinventory | |
| parent | 5f4b93466cf714df13af2056d13973071bc3d541 (diff) | |
Put warnings on sun/moon direction as they were.
Diffstat (limited to 'indra/llinventory')
| -rw-r--r-- | indra/llinventory/llsettingssky.cpp | 14 | 
1 files changed, 4 insertions, 10 deletions
| 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 | 
