summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-04-09 13:29:39 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-04-09 13:29:39 -0400
commit6ac9852d54d1ee4f826a08ca73f08bccf403d8c3 (patch)
tree97a2d8e1a52ff68cdc686f8ad88c2f952c4869e5 /indra/newview/llviewerinventory.cpp
parentf1684cdea5e1086b1127993eac9a5a7b4e47321a (diff)
MAINT-5069 WIP, MAINT-5071 WIP - handle dropping objects and attaching from ground. WIP on better tracking of attachment requests via various message in LLSelectMgr.
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rwxr-xr-xindra/newview/llviewerinventory.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index d6c8ba10f6..82da8a919b 100755
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -2307,4 +2307,12 @@ BOOL LLViewerInventoryItem::regenerateLink()
return TRUE;
}
-
+const LLUUID& get_linked_uuid(const LLUUID &item_id)
+{
+ LLViewerInventoryItem* item = gInventory.getItem(item_id);
+ if (item && item->getIsLinkType())
+ {
+ return item->getLinkedUUID();
+ }
+ return item_id;
+}