diff options
author | Jacek Antonelli | 2008-09-12 14:59:33 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-12 14:59:39 -0500 |
commit | 80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch) | |
tree | 170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/newview/llvoavatar.cpp | |
parent | Second Life viewer sources 1.21.1-RC (diff) | |
download | meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2 meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz |
Second Life viewer sources 1.21.2-RC
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index a9ecf9d..8adb910 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -8886,6 +8886,11 @@ U32 LLVOAvatar::getVisibilityRank() | |||
8886 | 8886 | ||
8887 | void LLVOAvatar::setVisibilityRank(U32 rank) | 8887 | void LLVOAvatar::setVisibilityRank(U32 rank) |
8888 | { | 8888 | { |
8889 | if (mDrawable.isNull() || mDrawable->isDead()) | ||
8890 | { //do nothing | ||
8891 | return; | ||
8892 | } | ||
8893 | |||
8889 | BOOL stale = gFrameTimeSeconds - mLastFadeTime > 10.f; | 8894 | BOOL stale = gFrameTimeSeconds - mLastFadeTime > 10.f; |
8890 | 8895 | ||
8891 | //only raise visibility rank or trigger a fade out every 10 seconds | 8896 | //only raise visibility rank or trigger a fade out every 10 seconds |