aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r--linden/indra/newview/llvoavatar.cpp5
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
8887void LLVOAvatar::setVisibilityRank(U32 rank) 8887void 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