diff --git a/indra/llcharacter/llheadrotmotion.cpp b/indra/llcharacter/llheadrotmotion.cpp index d045bca22e..26b3720156 100755 --- a/indra/llcharacter/llheadrotmotion.cpp +++ b/indra/llcharacter/llheadrotmotion.cpp @@ -458,7 +458,11 @@ BOOL LLEyeMotion::onUpdate(F32 time, U8* joint_mask) // calculate vergence F32 interocular_dist = (mLeftEyeState->getJoint()->getWorldPosition() - mRightEyeState->getJoint()->getWorldPosition()).magVec(); vergence = -atan2((interocular_dist / 2.f), lookAtDistance); - llclamp(vergence, -F_PI_BY_TWO, 0.f); + + // Guess we should take the return value of that llclamp... + // llclamp(vergence, -F_PI_BY_TWO, 0.f); + vergence = llclamp(vergence, -F_PI_BY_TWO, 0.f); + // } else {