aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r--linden/indra/newview/pipeline.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index 5088b16..cd546d4 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -1786,17 +1786,16 @@ void LLPipeline::stateSort(LLDrawable* drawablep, LLCamera& camera)
1786 LLSpatialGroup* group = drawablep->getSpatialGroup(); 1786 LLSpatialGroup* group = drawablep->getSpatialGroup();
1787 if (!group || group->changeLOD()) 1787 if (!group || group->changeLOD())
1788 { 1788 {
1789 if (!drawablep->isActive() && drawablep->isVisible()) 1789 if (drawablep->isVisible() && !sSkipUpdate)
1790 { 1790 {
1791 if (!sSkipUpdate) 1791 if (!drawablep->isActive())
1792 { 1792 {
1793 drawablep->updateDistance(camera); 1793 drawablep->updateDistance(camera);
1794 } 1794 }
1795 } 1795 else if (drawablep->isAvatar())
1796 else if (drawablep->isAvatar() && drawablep->isVisible()) 1796 {
1797 { 1797 drawablep->updateDistance(camera); // calls vobj->updateLOD() which calls LLVOAvatar::updateVisibility()
1798 LLVOAvatar* vobj = (LLVOAvatar*) drawablep->getVObj().get(); 1798 }
1799 vobj->updateVisibility();
1800 } 1799 }
1801 } 1800 }
1802 1801