diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-05-29 11:54:56 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-05-29 11:54:56 +0800 |
commit | 11d75418fce8372e9976b069070d9d0506766d0d (patch) | |
tree | d0fc6b405dbcffefcd85f3ba52a8248c0128acde /indra/llappearance | |
parent | b6c3d47c007c59cbd3c9913a0b99f9d42bdb8d75 (diff) | |
parent | 0421e7b846b03d316740d759348c3aaa723d0b14 (diff) |
Diffstat (limited to 'indra/llappearance')
-rw-r--r-- | indra/llappearance/llpolymorph.cpp | 8 |
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; } |