summaryrefslogtreecommitdiff
path: root/indra/llappearance/llpolymorph.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-04-18 21:36:56 +0300
committerGitHub <noreply@github.com>2025-04-18 21:36:56 +0300
commit9a333e65c4019540d5675e72ac57ef5ab106aab0 (patch)
tree55fa0d6d0de4521f0d8f764bb13b2e6c069602bb /indra/llappearance/llpolymorph.cpp
parent3d5f1541dd9980196ba0c8a3c3396c8ed3384d1e (diff)
parent4cccf8af43c8ebd9f947b9050a0403f65d0de7ee (diff)
Merge develop into release/2025.04
Diffstat (limited to 'indra/llappearance/llpolymorph.cpp')
-rw-r--r--indra/llappearance/llpolymorph.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llappearance/llpolymorph.cpp b/indra/llappearance/llpolymorph.cpp
index 8df8a9726f..5ee6649164 100644
--- a/indra/llappearance/llpolymorph.cpp
+++ b/indra/llappearance/llpolymorph.cpp
@@ -550,12 +550,12 @@ void LLPolyMorphTarget::apply( ESex avatar_sex )
mLastSex = avatar_sex;
- // Check for NaN condition (NaN is detected if a variable doesn't equal itself.
- if (mCurWeight != mCurWeight)
+ // Check for NaN condition
+ if (llisnan(mCurWeight))
{
- mCurWeight = 0.0;
+ mCurWeight = 0.f;
}
- if (mLastWeight != mLastWeight)
+ if (llisnan(mLastWeight))
{
mLastWeight = mCurWeight+.001f;
}