diff options
author | Jacek Antonelli | 2009-01-28 20:04:52 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-28 20:05:02 -0600 |
commit | 0ef11cf31364456ec247b0fc7ad8f6d1de408400 (patch) | |
tree | 50754b286468147a70271253a2a74215c80e1354 /linden/indra/newview/llhudeffectpointat.cpp | |
parent | Second Life viewer sources 1.22.5-RC (diff) | |
download | meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.zip meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.gz meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.bz2 meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.xz |
Second Life viewer sources 1.22.6-RC
Diffstat (limited to 'linden/indra/newview/llhudeffectpointat.cpp')
-rw-r--r-- | linden/indra/newview/llhudeffectpointat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/newview/llhudeffectpointat.cpp b/linden/indra/newview/llhudeffectpointat.cpp index d4fc57d..35131cc 100644 --- a/linden/indra/newview/llhudeffectpointat.cpp +++ b/linden/indra/newview/llhudeffectpointat.cpp | |||
@@ -441,8 +441,10 @@ bool LLHUDEffectPointAt::calcTargetPosition() | |||
441 | 441 | ||
442 | mTargetPos -= mSourceObject->getRenderPosition(); | 442 | mTargetPos -= mSourceObject->getRenderPosition(); |
443 | 443 | ||
444 | if (!mTargetPos.isFinite()) | 444 | if (!llfinite(mTargetPos.lengthSquared())) |
445 | { | ||
445 | return false; | 446 | return false; |
447 | } | ||
446 | 448 | ||
447 | if (mSourceObject->isAvatar()) | 449 | if (mSourceObject->isAvatar()) |
448 | { | 450 | { |