remove only attachments from outfit folder

master
Christopher 2020-07-10 20:23:38 +02:00
parent df9c30b609
commit c25138abc7
1 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,7 @@ namespace OpenSim.Modules.Appearance2Avatar
List<UUID> _itemIDs = new List<UUID>(); List<UUID> _itemIDs = new List<UUID>();
foreach (InventoryItemBase item in _outfitFolderContend.Items.ToArray()) foreach (InventoryItemBase item in _outfitFolderContend.Items.ToArray())
if (item.InvType == (int)AssetType.Object)
_itemIDs.Add(item.ID); _itemIDs.Add(item.ID);
m_scene.InventoryService.DeleteItems(sp.UUID, _itemIDs); m_scene.InventoryService.DeleteItems(sp.UUID, _itemIDs);