summaryrefslogtreecommitdiff
path: root/indra/newview/llhudicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llhudicon.cpp')
-rw-r--r--indra/newview/llhudicon.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llhudicon.cpp b/indra/newview/llhudicon.cpp
index 02a3576dff..3beff41cd4 100644
--- a/indra/newview/llhudicon.cpp
+++ b/indra/newview/llhudicon.cpp
@@ -45,7 +45,8 @@ LLHUDIcon::LLHUDIcon(const U8 type) :
LLHUDObject(type),
mImagep(NULL),
mPickID(0),
- mScale(0.1f)
+ mScale(0.1f),
+ mHidden(FALSE)
{
sIconInstances.push_back(this);
}
@@ -61,6 +62,9 @@ void LLHUDIcon::renderIcon(BOOL for_select)
LLGLDepthTest gls_depth(GL_TRUE);
LLGLState no_texture(GL_TEXTURE_2D, for_select ? FALSE : TRUE);
+ if (mHidden)
+ return;
+
if (mSourceObject.isNull() || mImagep.isNull())
{
markDead();