summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorNyx Linden <nyx@lindenlab.com>2013-08-16 19:31:36 -0400
committerNyx Linden <nyx@lindenlab.com>2013-08-16 19:31:36 -0400
commit2c997779420938653dd0433d4b5de08b2d113f20 (patch)
tree148cec71b984c3ae24e5da0d679acaf819c1b07f /indra/newview/llviewerinventory.cpp
parent5ae117aff6bfbc3c07876146ca270129dd91a047 (diff)
parent2157cf5e71f40ae4cc9eedaea6811a4c55718747 (diff)
merge
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rwxr-xr-xindra/newview/llviewerinventory.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index dc17da9009..b623b23e1a 100755
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1101,8 +1101,7 @@ void link_inventory_object(const LLUUID& category,
// Create links to all listed inventory objects.
void link_inventory_array(const LLUUID& category,
LLInventoryObject::const_object_list_t& baseobj_array,
- LLPointer<LLInventoryCallback> cb,
- bool resolve_links /* = false */)
+ LLPointer<LLInventoryCallback> cb)
{
#ifndef LL_RELEASE_FOR_DOWNLOAD
const LLViewerInventoryCategory *cat = gInventory.getCategory(category);
@@ -1119,11 +1118,6 @@ void link_inventory_array(const LLUUID& category,
llwarns << "attempt to link to unknown object" << llendl;
continue;
}
- if (!resolve_links && baseobj->getIsLinkType())
- {
- llwarns << "attempt to create a link to a link, linked-to-object's ID " << baseobj->getUUID() << llendl;
- continue;
- }
if (!LLAssetType::lookupCanLink(baseobj->getType()))
{
@@ -1741,7 +1735,9 @@ void slam_inventory_folder(const LLUUID& folder_id,
++it)
{
const LLSD& item_contents = *it;
- link_inventory_object(folder_id, item_contents["linked_id"].asUUID(), cb);
+ LLViewerInventoryItem *item = new LLViewerInventoryItem;
+ item->fromLLSD(item_contents);
+ link_inventory_object(folder_id, item, cb);
}
remove_folder_contents(folder_id,false,cb);
}