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)
|
foreach (InventoryItemBase item in items)
|
||||||
{
|
{
|
||||||
if (item != null)
|
if (item != null)
|
||||||
item.ToLLSDxml(lsl);
|
item.ToLLSDxml(lsl, 0xff);
|
||||||
}
|
}
|
||||||
LLSDxmlEncode.AddEndArray(lsl);
|
LLSDxmlEncode.AddEndArray(lsl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -417,7 +417,7 @@ namespace OpenSim.Framework
|
||||||
return MemberwiseClone();
|
return MemberwiseClone();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ToLLSDxml(StringBuilder lsl)
|
public void ToLLSDxml(StringBuilder lsl, uint flagsMask = 0xffffffff)
|
||||||
{
|
{
|
||||||
LLSDxmlEncode.AddMap(lsl);
|
LLSDxmlEncode.AddMap(lsl);
|
||||||
LLSDxmlEncode.AddElem("parent_id", Folder, lsl);
|
LLSDxmlEncode.AddElem("parent_id", Folder, lsl);
|
||||||
|
@ -438,7 +438,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
LLSDxmlEncode.AddElem("type", AssetType, lsl);
|
LLSDxmlEncode.AddElem("type", AssetType, lsl);
|
||||||
LLSDxmlEncode.AddElem("inv_type", InvType, lsl);
|
LLSDxmlEncode.AddElem("inv_type", InvType, lsl);
|
||||||
LLSDxmlEncode.AddElem("flags", ((int)Flags) & 0xff, lsl);
|
LLSDxmlEncode.AddElem("flags", (int)(Flags & flagsMask), lsl);
|
||||||
|
|
||||||
LLSDxmlEncode.AddMap("sale_info",lsl);
|
LLSDxmlEncode.AddMap("sale_info",lsl);
|
||||||
LLSDxmlEncode.AddElem("sale_price", SalePrice, lsl);
|
LLSDxmlEncode.AddElem("sale_price", SalePrice, lsl);
|
||||||
|
|
Loading…
Reference in New Issue