aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llselectmgr.cpp
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llselectmgr.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 7d7ae79..6ddae78 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -3994,7 +3994,11 @@ void LLSelectMgr::sendListToRegions(const LLString& message_name,
3994 switch(send_type) 3994 switch(send_type)
3995 { 3995 {
3996 case SEND_ONLY_ROOTS: 3996 case SEND_ONLY_ROOTS:
3997 getSelection()->applyToRootNodes(&pusheditable); 3997 if(message_name == "ObjectBuy")
3998 getSelection()->applyToRootNodes(&pushroots);
3999 else
4000 getSelection()->applyToRootNodes(&pusheditable);
4001
3998 break; 4002 break;
3999 case SEND_INDIVIDUALS: 4003 case SEND_INDIVIDUALS:
4000 getSelection()->applyToNodes(&pushall); 4004 getSelection()->applyToNodes(&pushall);
@@ -6063,23 +6067,19 @@ LLViewerObject* LLObjectSelection::getFirstDeleteableObject()
6063 bool apply(LLSelectNode* node) 6067 bool apply(LLSelectNode* node)
6064 { 6068 {
6065 LLViewerObject* obj = node->getObject(); 6069 LLViewerObject* obj = node->getObject();
6066 // you can delete an object if permissions allow it, you are 6070 // you can delete an object if you are the owner
6067 // the owner, you are an officer in the group that owns the 6071 // or you have permission to modify it.
6068 // object, or you are not the owner but it is on land you own
6069 // or land owned by your group. (whew!)
6070 if( (obj->permModify()) 6072 if( (obj->permModify())
6071 || (obj->permYouOwner()) 6073 || (obj->permYouOwner())
6072 || (!obj->permAnyOwner()) // public 6074 || (!obj->permAnyOwner()) // public
6073 || (obj->isOverAgentOwnedLand())
6074 || (obj->isOverGroupOwnedLand())
6075 ) 6075 )
6076 { 6076 {
6077 if( !obj->isAttachment() ) 6077 if( !obj->isAttachment() )
6078 { 6078 {
6079 return TRUE; 6079 return true;
6080 } 6080 }
6081 } 6081 }
6082 return true; 6082 return false;
6083 } 6083 }
6084 } func; 6084 } func;
6085 LLSelectNode* node = getFirstNode(&func); 6085 LLSelectNode* node = getFirstNode(&func);