aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawable.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawable.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp
index 0f89585..ac90fdf 100644
--- a/linden/indra/newview/lldrawable.cpp
+++ b/linden/indra/newview/lldrawable.cpp
@@ -362,6 +362,7 @@ void LLDrawable::makeActive()
362 if (pcode == LLViewerObject::LL_VO_WATER || 362 if (pcode == LLViewerObject::LL_VO_WATER ||
363 pcode == LLViewerObject::LL_VO_SURFACE_PATCH || 363 pcode == LLViewerObject::LL_VO_SURFACE_PATCH ||
364 pcode == LLViewerObject::LL_VO_PART_GROUP || 364 pcode == LLViewerObject::LL_VO_PART_GROUP ||
365 pcode == LLViewerObject::LL_VO_HUD_PART_GROUP ||
365 pcode == LLViewerObject::LL_VO_CLOUDS || 366 pcode == LLViewerObject::LL_VO_CLOUDS ||
366 pcode == LLViewerObject::LL_VO_GROUND || 367 pcode == LLViewerObject::LL_VO_GROUND ||
367 pcode == LLViewerObject::LL_VO_SKY) 368 pcode == LLViewerObject::LL_VO_SKY)
@@ -951,6 +952,9 @@ BOOL LLDrawable::isVisible() const
951 return TRUE; 952 return TRUE;
952 } 953 }
953 954
955#if 0
956 //disabling this code fixes DEV-20105. Leaving in place in case some other bug pops up as a a result.
957 //should be safe to just always ask the spatial group for visibility.
954 if (isActive()) 958 if (isActive())
955 { 959 {
956 if (isRoot()) 960 if (isRoot())
@@ -973,6 +977,7 @@ BOOL LLDrawable::isVisible() const
973 } 977 }
974 } 978 }
975 else 979 else
980#endif
976 { 981 {
977 LLSpatialGroup* group = getSpatialGroup(); 982 LLSpatialGroup* group = getSpatialGroup();
978 if (group && group->isVisible()) 983 if (group && group->isVisible())
@@ -1380,7 +1385,10 @@ BOOL LLDrawable::isAnimating() const
1380 { 1385 {
1381 return TRUE; 1386 return TRUE;
1382 } 1387 }
1383 1388 if (mVObjp->getPCode() == LLViewerObject::LL_VO_HUD_PART_GROUP)
1389 {
1390 return TRUE;
1391 }
1384 if (mVObjp->getPCode() == LLViewerObject::LL_VO_CLOUDS) 1392 if (mVObjp->getPCode() == LLViewerObject::LL_VO_CLOUDS)
1385 { 1393 {
1386 return TRUE; 1394 return TRUE;