Removes folders from get inventory contents
This commit is contained in:
parent
8f59ba4bb7
commit
27a27f95cb
1 changed files with 14 additions and 10 deletions
|
|
@ -672,24 +672,28 @@ namespace OpenMetaverse
|
|||
List<UUID> load_items = new List<UUID>();
|
||||
List<UUID> owner_ids = new List<UUID>();
|
||||
|
||||
foreach (InventoryItem o in objects)
|
||||
foreach (InventoryBase o in objects)
|
||||
{
|
||||
if ((o.IsLink() == true) && (fast_loading == false))
|
||||
if (o.GetType() != typeof(InventoryFolder))
|
||||
{
|
||||
if (Store.Items.ContainsKey(o.AssetUUID) == false)
|
||||
InventoryItem ob = (InventoryItem)o;
|
||||
if ((ob.IsLink() == true) && (fast_loading == false))
|
||||
{
|
||||
load_items.Add(o.AssetUUID);
|
||||
owner_ids.Add(Client.Self.AgentID);
|
||||
if (Store.Items.ContainsKey(ob.AssetUUID) == false)
|
||||
{
|
||||
load_items.Add(ob.AssetUUID);
|
||||
owner_ids.Add(Client.Self.AgentID);
|
||||
}
|
||||
else
|
||||
{
|
||||
cleaned_list.Add(Client.Inventory.FetchItem(ob.AssetUUID, Client.Self.AgentID, 1000 * 5));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cleaned_list.Add(Client.Inventory.FetchItem(o.AssetUUID, Client.Self.AgentID, 1000 * 5));
|
||||
cleaned_list.Add(ob);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cleaned_list.Add(o);
|
||||
}
|
||||
}
|
||||
|
||||
if(load_items.Count > 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue