diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-06 17:59:16 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-06 17:59:16 -0400 |
commit | bee76e305214598b2cb148e399d86e28d80287ca (patch) | |
tree | 6104bb3a97a480736dff7836545ef9401519e07a /indra/newview | |
parent | 16eb7d82c9cabd0c3431f090c0435141534949ea (diff) |
SH-4166 WIP - fix for a permissions issue that was preventing cof-created links from being reordered in outfits.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llinventorymodel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index c0c48d6695..532d3a3495 100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -1247,6 +1247,13 @@ void LLInventoryModel::onAISUpdateReceived(const std::string& context, const LLS BOOL rv = new_link->unpackMessage(link_map); if (rv) { + LLPermissions default_perms; + default_perms.init(gAgent.getID(),gAgent.getID(),LLUUID::null,LLUUID::null); + default_perms.initMasks(PERM_NONE,PERM_NONE,PERM_NONE,PERM_NONE,PERM_NONE); + new_link->setPermissions(default_perms); + LLSaleInfo default_sale_info; + new_link->setSaleInfo(default_sale_info); + //LL_DEBUGS("Inventory") << "creating link from llsd: " << ll_pretty_print_sd(link_map) << llendl; items_created[link_id] = new_link; const LLUUID& parent_id = new_link->getParentUUID(); cat_deltas[parent_id]++; |