aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltextureview.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/lltextureview.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/lltextureview.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/linden/indra/newview/lltextureview.cpp b/linden/indra/newview/lltextureview.cpp
index 6a24a57..4df5444 100644
--- a/linden/indra/newview/lltextureview.cpp
+++ b/linden/indra/newview/lltextureview.cpp
@@ -2,6 +2,8 @@
2 * @file lltextureview.cpp 2 * @file lltextureview.cpp
3 * @brief LLTextureView class implementation 3 * @brief LLTextureView class implementation
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"
@@ -638,16 +641,20 @@ void LLTextureView::draw()
638#if 1 641#if 1
639 if (pri < HIGH_PRIORITY && gSelectMgr) 642 if (pri < HIGH_PRIORITY && gSelectMgr)
640 { 643 {
641 S32 te; 644 struct f : public LLSelectedTEFunctor
642 LLViewerObject *objectp;
643 LLObjectSelectionHandle selection = gSelectMgr->getSelection();
644 for (selection->getFirstTE(&objectp, &te); objectp; selection->getNextTE(&objectp, &te))
645 { 645 {
646 if (imagep == objectp->getTEImage(te)) 646 LLViewerImage* mImage;
647 f(LLViewerImage* image) : mImage(image) {}
648 virtual bool apply(LLViewerObject* object, S32 te)
647 { 649 {
648 pri += 3*HIGH_PRIORITY; 650 return (mImage == object->getTEImage(te));
649 break;
650 } 651 }
652 } func(imagep);
653 const bool firstonly = true;
654 bool match = gSelectMgr->getSelection()->applyToTEs(&func, firstonly);
655 if (match)
656 {
657 pri += 3*HIGH_PRIORITY;
651 } 658 }
652 } 659 }
653#endif 660#endif