summaryrefslogtreecommitdiff
path: root/indra/llappearance
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-04-17 23:35:44 +0300
committerGitHub <noreply@github.com>2025-04-17 23:35:44 +0300
commitc7ebde4ec9d3909c3c2f6503dc9096406297f26d (patch)
treeb2aadd1082e28b92892755f6b2dfb64edc098ad4 /indra/llappearance
parent293462d8ff6dcb00ec501d026a6589d869a2f846 (diff)
parent4c6afbbb75076e9fd34ee5707a02195c4e2f7223 (diff)
Merge pull request #3927 from Ansariel/develop-math-improvements
Add a bunch of old and new math improvements
Diffstat (limited to 'indra/llappearance')
-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;
}