mantis 8411: fix send inventory item flags mask
parent
5951152082
commit
56845d4b75
|
@ -99,7 +99,7 @@ namespace OpenSim.Capabilities.Handlers
|
|||
foreach (InventoryItemBase item in items)
|
||||
{
|
||||
if (item != null)
|
||||
item.ToLLSDxml(lsl);
|
||||
item.ToLLSDxml(lsl, 0xff);
|
||||
}
|
||||
LLSDxmlEncode.AddEndArray(lsl);
|
||||
}
|
||||
|
|
|
@ -417,7 +417,7 @@ namespace OpenSim.Framework
|
|||
return MemberwiseClone();
|
||||
}
|
||||
|
||||
public void ToLLSDxml(StringBuilder lsl)
|
||||
public void ToLLSDxml(StringBuilder lsl, uint flagsMask = 0xffffffff)
|
||||
{
|
||||
LLSDxmlEncode.AddMap(lsl);
|
||||
LLSDxmlEncode.AddElem("parent_id", Folder, lsl);
|
||||
|
@ -433,21 +433,21 @@ namespace OpenSim.Framework
|
|||
LLSDxmlEncode.AddElem("group_mask", (int)GroupPermissions, lsl);
|
||||
LLSDxmlEncode.AddElem("everyone_mask", (int)EveryOnePermissions, lsl);
|
||||
LLSDxmlEncode.AddElem("next_owner_mask", (int)NextPermissions, lsl);
|
||||
LLSDxmlEncode.AddElem("is_owner_group", GroupOwned, lsl);
|
||||
LLSDxmlEncode.AddElem("is_owner_group", GroupOwned, lsl);
|
||||
LLSDxmlEncode.AddEndMap(lsl);
|
||||
|
||||
LLSDxmlEncode.AddElem("type", AssetType, lsl);
|
||||
LLSDxmlEncode.AddElem("inv_type", InvType, lsl);
|
||||
LLSDxmlEncode.AddElem("flags", ((int)Flags) & 0xff, lsl);
|
||||
LLSDxmlEncode.AddElem("type", AssetType, lsl);
|
||||
LLSDxmlEncode.AddElem("inv_type", InvType, lsl);
|
||||
LLSDxmlEncode.AddElem("flags", (int)(Flags & flagsMask), lsl);
|
||||
|
||||
LLSDxmlEncode.AddMap("sale_info",lsl);
|
||||
LLSDxmlEncode.AddElem("sale_price", SalePrice, lsl);
|
||||
LLSDxmlEncode.AddElem("sale_type", SaleType, lsl);
|
||||
LLSDxmlEncode.AddElem("sale_price", SalePrice, lsl);
|
||||
LLSDxmlEncode.AddElem("sale_type", SaleType, lsl);
|
||||
LLSDxmlEncode.AddEndMap(lsl);
|
||||
|
||||
LLSDxmlEncode.AddElem("name", Name, lsl);
|
||||
LLSDxmlEncode.AddElem("desc", Description, lsl);
|
||||
LLSDxmlEncode.AddElem("created_at", CreationDate, lsl);
|
||||
LLSDxmlEncode.AddElem("name", Name, lsl);
|
||||
LLSDxmlEncode.AddElem("desc", Description, lsl);
|
||||
LLSDxmlEncode.AddElem("created_at", CreationDate, lsl);
|
||||
|
||||
LLSDxmlEncode.AddEndMap(lsl);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue