diff options
| author | Brad Linden <brad@lindenlab.com> | 2023-05-31 10:33:03 -0700 | 
|---|---|---|
| committer | Brad Linden <brad@lindenlab.com> | 2023-05-31 10:33:03 -0700 | 
| commit | 8d20d61b4d305b985de4837bb0ed3ddaedb208d1 (patch) | |
| tree | 36da421ebc6851ba7ae49e15c75ab823d18cc29b /indra/llinventory | |
| parent | 2e2a821e3667cbedc57086121b834c339a3c68de (diff) | |
Fix divide by zero causing NaN with certain day cycles in DRTVWR-559
Diffstat (limited to 'indra/llinventory')
| -rw-r--r-- | indra/llinventory/llsettingsbase.cpp | 1 | ||||
| -rw-r--r-- | indra/llinventory/llsettingsbase.h | 1 | 
2 files changed, 2 insertions, 0 deletions
| diff --git a/indra/llinventory/llsettingsbase.cpp b/indra/llinventory/llsettingsbase.cpp index 936b166409..bcf8bf6264 100644 --- a/indra/llinventory/llsettingsbase.cpp +++ b/indra/llinventory/llsettingsbase.cpp @@ -693,6 +693,7 @@ void LLSettingsBlender::update(const LLSettingsBase::BlendFactor& blendf)  F64 LLSettingsBlender::setBlendFactor(const LLSettingsBase::BlendFactor& blendf_in)  {      LLSettingsBase::TrackPosition blendf = blendf_in; +    llassert(!isnan(blendf));      if (blendf >= 1.0)      {          triggerComplete(); diff --git a/indra/llinventory/llsettingsbase.h b/indra/llinventory/llsettingsbase.h index 1f0589f571..50276b801a 100644 --- a/indra/llinventory/llsettingsbase.h +++ b/indra/llinventory/llsettingsbase.h @@ -467,6 +467,7 @@ protected:  class LLSettingsBlenderTimeDelta : public LLSettingsBlender  { +protected:      LOG_CLASS(LLSettingsBlenderTimeDelta);  public:      static const LLSettingsBase::BlendFactor MIN_BLEND_DELTA; | 
