aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:57 -0500
committerJacek Antonelli2008-08-15 23:45:57 -0500
commit7e3007b63521c4b0c5bbad1c3964a557fc526ce2 (patch)
treeab231ed574db618873d6ebb25293cf7c0cb6d26e /linden/indra/newview/pipeline.cpp
parentSecond Life viewer sources 1.20.10 (diff)
downloadmeta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.zip
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.gz
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.bz2
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.xz
Second Life viewer sources 1.20.11
Diffstat (limited to '')
-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