FIRE-7113: Crash fix for non finite target in editing motion
parent
781a27add8
commit
0e5dd803db
|
|
@ -214,8 +214,13 @@ BOOL LLEditingMotion::onUpdate(F32 time, U8* joint_mask)
|
|||
target = target * target_dist;
|
||||
if (!target.isFinite())
|
||||
{
|
||||
llerrs << "Non finite target in editing motion with target distance of " << target_dist <<
|
||||
// <FS:Ansariel> FIRE-7113: Don't error out here, set a fail-safe target vector
|
||||
//llerrs << "Non finite target in editing motion with target distance of " << target_dist <<
|
||||
// " and focus point " << focus_pt << llendl;
|
||||
llwarns << "Non finite target in editing motion with target distance of " << target_dist <<
|
||||
" and focus point " << focus_pt << llendl;
|
||||
target.setVec(1.f, 1.f, 1.f);
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
mTarget.setPosition( target + mParentJoint.getPosition());
|
||||
|
|
|
|||
Loading…
Reference in New Issue