aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerobjectlist.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llviewerobjectlist.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp
index f8c20a3..967f018 100644
--- a/linden/indra/newview/llviewerobjectlist.cpp
+++ b/linden/indra/newview/llviewerobjectlist.cpp
@@ -2,6 +2,8 @@
2 * @file llviewerobjectlist.cpp 2 * @file llviewerobjectlist.cpp
3 * @brief Implementation of LLViewerObjectList class. 3 * @brief Implementation of LLViewerObjectList class.
4 * 4 *
5 * $LicenseInfo:firstyear=2001&license=viewergpl$
6 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 7 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
@@ -589,12 +592,15 @@ void LLViewerObjectList::updateApparentAngles(LLAgent &agent)
589 } 592 }
590 593
591 // Selected 594 // Selected
592 LLObjectSelectionHandle selection = gSelectMgr->getSelection(); 595 struct f : public LLSelectedObjectFunctor
593 for (objectp = selection->getFirstRootObject(); objectp; objectp = selection->getNextRootObject())
594 { 596 {
595 objectp->boostTexturePriority(); 597 virtual bool apply(LLViewerObject* objectp)
596 } 598 {
597 599 objectp->boostTexturePriority();
600 return true;
601 }
602 } func;
603 gSelectMgr->getSelection()->applyToRootObjects(&func);
598 604
599 // Iterate through some of the objects and lazy update their texture priorities 605 // Iterate through some of the objects and lazy update their texture priorities
600 for (i = mCurLazyUpdateIndex; i < max_value; i++) 606 for (i = mCurLazyUpdateIndex; i < max_value; i++)
@@ -1025,7 +1031,7 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
1025 for (S32 i = 0; i < mMapObjects.count(); i++) 1031 for (S32 i = 0; i < mMapObjects.count(); i++)
1026 { 1032 {
1027 LLViewerObject* objectp = mMapObjects[i]; 1033 LLViewerObject* objectp = mMapObjects[i];
1028 if (objectp->isOrphaned() || objectp->isAttachment()) 1034 if (!objectp->getRegion() || objectp->isOrphaned() || objectp->isAttachment())
1029 { 1035 {
1030 continue; 1036 continue;
1031 } 1037 }
@@ -1459,6 +1465,10 @@ void LLViewerObjectList::findOrphans(LLViewerObject* objectp, U32 ip, U32 port)
1459 childp->mDrawable->setState(LLDrawable::CLEAR_INVISIBLE); 1465 childp->mDrawable->setState(LLDrawable::CLEAR_INVISIBLE);
1460 childp->setDrawableParent(objectp->mDrawable); // LLViewerObjectList::findOrphans() 1466 childp->setDrawableParent(objectp->mDrawable); // LLViewerObjectList::findOrphans()
1461 } 1467 }
1468
1469 // Make certain particles, icon and HUD aren't hidden
1470 childp->hideExtraDisplayItems( FALSE );
1471
1462 objectp->addChild(childp); 1472 objectp->addChild(childp);
1463 orphans_found = TRUE; 1473 orphans_found = TRUE;
1464 } 1474 }