summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-08-18 11:04:07 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-08-18 11:04:07 -0700
commit6d7523defcc5a78e8db9e4ea9db6605247c289ae (patch)
treef5e43bf3e55cce0d983de514c8cecb25de3d4129
parent3676469b72a3f677e2048b5117e4a81897244dc7 (diff)
EXP-1068 Disallow dragging of outbox items onto avatar
-rw-r--r--indra/newview/lltooldraganddrop.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp
index 14f17e8917..a06cb838cf 100644
--- a/indra/newview/lltooldraganddrop.cpp
+++ b/indra/newview/lltooldraganddrop.cpp
@@ -1652,6 +1652,13 @@ EAcceptance LLToolDragAndDrop::dad3dRezAttachmentFromInv(
return ACCEPT_NO;
}
+ const LLUUID &outbox_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_OUTBOX, false);
+ if(gInventory.isObjectDescendentOf(item->getUUID(), outbox_id))
+ {
+ return ACCEPT_NO;
+ }
+
+
if( drop )
{
if(mSource == SOURCE_LIBRARY)