From d725e5b24075b2171f8a5b263969991e9b475078 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Mon, 29 Sep 2008 19:14:50 +0000 Subject: QAR-872 Viewer 1.21 RC 3 merge viewer_1-21 96116-97380 -> release --- indra/llcharacter/lleditingmotion.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indra/llcharacter') diff --git a/indra/llcharacter/lleditingmotion.cpp b/indra/llcharacter/lleditingmotion.cpp index 34fb6c423a..301a6e74c9 100644 --- a/indra/llcharacter/lleditingmotion.cpp +++ b/indra/llcharacter/lleditingmotion.cpp @@ -186,6 +186,12 @@ BOOL LLEditingMotion::onUpdate(F32 time, U8* joint_mask) } focus_pt += mCharacter->getCharacterPosition(); + if (!llfinite(focus_pt.magVecSquared())) + { + LLVector3 tmp = mCharacter->getCharacterPosition() ; + llerrs << "Non finite focus point in editing motion. focus point: " << focus_pt << " and character position: " << + tmp << " and pointAtPt: " << pointAtPt << llendl; + } // propagate joint positions to kinematic chain mParentJoint.setPosition( mParentState->getJoint()->getWorldPosition() ); @@ -220,7 +226,7 @@ BOOL LLEditingMotion::onUpdate(F32 time, U8* joint_mask) if (!target.isFinite()) { llerrs << "Non finite target in editing motion with target distance of " << target_dist << - " and focus point " << focus_pt << llendl; + " and focus point " << focus_pt << " and pointAtPt: " << pointAtPt << llendl; } mTarget.setPosition( target + mParentJoint.getPosition()); -- cgit v1.2.3