aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
authorRobin Cornelius2010-10-10 21:53:54 +0100
committerRobin Cornelius2010-10-10 21:53:54 +0100
commitc0034c520c6e61b64822e276316651ec6912bd98 (patch)
tree910442027b6a2c1406d80ca93949755b54badf5c /linden/indra/newview/llselectmgr.cpp
parentUse all those cores for compile (diff)
parentThickbrick Sleaford, Soft Linden: STORM-164 make gcc-4.4 happy about llvosky.h (diff)
downloadmeta-impy-c0034c520c6e61b64822e276316651ec6912bd98.zip
meta-impy-c0034c520c6e61b64822e276316651ec6912bd98.tar.gz
meta-impy-c0034c520c6e61b64822e276316651ec6912bd98.tar.bz2
meta-impy-c0034c520c6e61b64822e276316651ec6912bd98.tar.xz
Merge branch 'mccabe-plugins' into plugins_merge
Conflicts: linden/doc/contributions.txt linden/indra/cmake/GStreamer.cmake linden/indra/cmake/LLMedia.cmake linden/indra/cmake/OPENAL.cmake linden/indra/llmedia/CMakeLists.txt linden/indra/llprimitive/material_codes.h linden/indra/newview/chatbar_as_cmdline.cpp linden/indra/newview/llappviewer.cpp linden/indra/newview/llfloatertos.cpp linden/indra/newview/llstartup.cpp linden/indra/newview/llviewerwindow.cpp linden/indra/newview/llvoavatar.cpp linden/indra/newview/pipeline.cpp linden/indra/newview/pipeline.h linden/indra/newview/viewer_manifest.py linden/install.xml
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llselectmgr.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 1634950..44ac8fd 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -59,6 +59,7 @@
59#include "llfloaterreporter.h" 59#include "llfloaterreporter.h"
60#include "llfloatertools.h" 60#include "llfloatertools.h"
61#include "llframetimer.h" 61#include "llframetimer.h"
62#include "llfocusmgr.h"
62#include "llhudeffecttrail.h" 63#include "llhudeffecttrail.h"
63#include "llhudmanager.h" 64#include "llhudmanager.h"
64#include "llinventorymodel.h" 65#include "llinventorymodel.h"
@@ -75,6 +76,8 @@
75#include "llviewercamera.h" 76#include "llviewercamera.h"
76#include "llviewercontrol.h" 77#include "llviewercontrol.h"
77#include "llviewerimagelist.h" 78#include "llviewerimagelist.h"
79#include "llviewermedia.h"
80#include "llviewermediafocus.h"
78#include "llviewermenu.h" 81#include "llviewermenu.h"
79#include "llviewerobject.h" 82#include "llviewerobject.h"
80#include "llviewerobjectlist.h" 83#include "llviewerobjectlist.h"
@@ -763,7 +766,7 @@ void LLSelectMgr::addAsIndividual(LLViewerObject *objectp, S32 face, BOOL undoab
763 } 766 }
764 else 767 else
765 { 768 {
766 llerrs << "LLSelectMgr::add face " << face << " out-of-range" << llendl; 769 llwarns << "LLSelectMgr::add face " << face << " out-of-range" << llendl;
767 return; 770 return;
768 } 771 }
769 772
@@ -1186,7 +1189,7 @@ void LLSelectMgr::remove(LLViewerObject *objectp, S32 te, BOOL undoable)
1186 } 1189 }
1187 else 1190 else
1188 { 1191 {
1189 llerrs << "LLSelectMgr::remove - tried to remove TE " << te << " that wasn't selected" << llendl; 1192 llwarns << "LLSelectMgr::remove - tried to remove TE " << te << " that wasn't selected" << llendl;
1190 return; 1193 return;
1191 } 1194 }
1192 1195
@@ -1209,7 +1212,7 @@ void LLSelectMgr::remove(LLViewerObject *objectp, S32 te, BOOL undoable)
1209 else 1212 else
1210 { 1213 {
1211 // ...out of range face 1214 // ...out of range face
1212 llerrs << "LLSelectMgr::remove - TE " << te << " out of range" << llendl; 1215 llwarns << "LLSelectMgr::remove - TE " << te << " out of range" << llendl;
1213 } 1216 }
1214 1217
1215 updateSelectionCenter(); 1218 updateSelectionCenter();
@@ -1708,13 +1711,13 @@ void LLSelectMgr::selectionSetFullbright(U8 fullbright)
1708 } sendfunc(fullbright); 1711 } sendfunc(fullbright);
1709 getSelection()->applyToObjects(&sendfunc); 1712 getSelection()->applyToObjects(&sendfunc);
1710} 1713}
1711 1714/*
1712void LLSelectMgr::selectionSetMediaTypeAndURL(U8 media_type, const std::string& media_url) 1715void LLSelectMgr::selectionSetMediaTypeAndURL(U8 media_type, const std::string& media_url)
1713{ 1716{
1714 U8 media_flags = LLTextureEntry::MF_NONE; 1717 U8 media_flags = LLTextureEntry::MF_NONE;
1715 if (media_type == LLViewerObject::MEDIA_TYPE_WEB_PAGE) 1718 if (media_type == LLViewerObject::MEDIA_TYPE_WEB_PAGE)
1716 { 1719 {
1717 media_flags = LLTextureEntry::MF_WEB_PAGE; 1720 media_flags = LLTextureEntry::MF_HAS_MEDIA;
1718 } 1721 }
1719 1722
1720 struct f : public LLSelectedTEFunctor 1723 struct f : public LLSelectedTEFunctor
@@ -1751,7 +1754,7 @@ void LLSelectMgr::selectionSetMediaTypeAndURL(U8 media_type, const std::string&
1751 } sendfunc(media_type, media_url); 1754 } sendfunc(media_type, media_url);
1752 getSelection()->applyToObjects(&sendfunc); 1755 getSelection()->applyToObjects(&sendfunc);
1753} 1756}
1754 1757*/
1755void LLSelectMgr::selectionSetGlow(F32 glow) 1758void LLSelectMgr::selectionSetGlow(F32 glow)
1756{ 1759{
1757 struct f1 : public LLSelectedTEFunctor 1760 struct f1 : public LLSelectedTEFunctor
@@ -3356,7 +3359,7 @@ void LLSelectMgr::packPermissionsHead(void* user_data)
3356/* 3359/*
3357void LLSelectMgr::sendSelect() 3360void LLSelectMgr::sendSelect()
3358{ 3361{
3359 llerrs << "Not implemented" << llendl; 3362 llwarns << "Not implemented" << llendl;
3360} 3363}
3361*/ 3364*/
3362 3365
@@ -4180,7 +4183,7 @@ void LLSelectMgr::sendListToRegions(const std::string& message_name,
4180 break; 4183 break;
4181 4184
4182 default: 4185 default:
4183 llerrs << "Bad send type " << send_type << " passed to SendListToRegions()" << llendl; 4186 llwarns << "Bad send type " << send_type << " passed to SendListToRegions()" << llendl;
4184 } 4187 }
4185 4188
4186 // bail if nothing selected 4189 // bail if nothing selected
@@ -4587,11 +4590,6 @@ extern LLGLdouble gGLModelView[16];
4587 4590
4588void LLSelectMgr::updateSilhouettes() 4591void LLSelectMgr::updateSilhouettes()
4589{ 4592{
4590 if (!mRenderSilhouettes || !LLSelectMgr::sRenderSelectionHighlights)
4591 {
4592 return;
4593 }
4594
4595 S32 num_sils_genned = 0; 4593 S32 num_sils_genned = 0;
4596 4594
4597 LLVector3d cameraPos = gAgent.getCameraPositionGlobal(); 4595 LLVector3d cameraPos = gAgent.getCameraPositionGlobal();
@@ -4902,7 +4900,7 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
4902 if (mSelectedObjects->getNumNodes()) 4900 if (mSelectedObjects->getNumNodes())
4903 { 4901 {
4904 LLUUID inspect_item_id = LLFloaterInspect::getSelectedUUID(); 4902 LLUUID inspect_item_id = LLFloaterInspect::getSelectedUUID();
4905 4903 LLUUID focus_item_id = LLViewerMediaFocus::getInstance()->getSelectedUUID();
4906 for (S32 pass = 0; pass < 2; pass++) 4904 for (S32 pass = 0; pass < 2; pass++)
4907 { 4905 {
4908 for (LLObjectSelection::iterator iter = mSelectedObjects->begin(); 4906 for (LLObjectSelection::iterator iter = mSelectedObjects->begin();
@@ -4916,7 +4914,11 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
4916 { 4914 {
4917 continue; 4915 continue;
4918 } 4916 }
4919 if(objectp->getID() == inspect_item_id) 4917 if (objectp->getID() == focus_item_id)
4918 {
4919 node->renderOneSilhouette(gFocusMgr.getFocusColor());
4920 }
4921 else if(objectp->getID() == inspect_item_id)
4920 { 4922 {
4921 node->renderOneSilhouette(sHighlightInspectColor); 4923 node->renderOneSilhouette(sHighlightInspectColor);
4922 } 4924 }
@@ -5801,8 +5803,7 @@ BOOL LLSelectMgr::canSelectObject(LLViewerObject* object)
5801 } 5803 }
5802 5804
5803 if ((gSavedSettings.getBOOL("SelectOwnedOnly") && !object->permYouOwner()) || 5805 if ((gSavedSettings.getBOOL("SelectOwnedOnly") && !object->permYouOwner()) ||
5804 (gSavedSettings.getBOOL("SelectMovableOnly") && !object->permMove()) || 5806 (gSavedSettings.getBOOL("SelectMovableOnly") && !object->permMove()))
5805 (gSavedSettings.getBOOL("SelectCopyableOnly") && !object->permCopy()))
5806 { 5807 {
5807 // only select my own objects 5808 // only select my own objects
5808 return FALSE; 5809 return FALSE;