mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
move std::isnan() to LL's own llisnan()
This commit is contained in:
@@ -643,7 +643,7 @@ bool FSPoserAnimator::getFreeRotationAtAandB(const LLVector3& posA, const LLVect
|
||||
rotationAxis.normalize();
|
||||
|
||||
F32 angle = asin(lengthMove / lengthAC);
|
||||
if (std::isnan(angle))
|
||||
if (llisnan(angle))
|
||||
return false;
|
||||
|
||||
changeAtA = LLQuaternion(angle, rotationAxis);
|
||||
@@ -694,7 +694,7 @@ LLQuaternion FSPoserAnimator::getAbcFrameRotation(const LLVector3& posA, const L
|
||||
LLVector3 rotationAxis = vectorAC % changeAtC;
|
||||
rotationAxis.normalize();
|
||||
|
||||
if (std::isnan(angle))
|
||||
if (llisnan(angle))
|
||||
angle = 0.f;
|
||||
|
||||
return LLQuaternion(angle, rotationAxis);
|
||||
|
||||
Reference in New Issue
Block a user