From 330343505ca2d6d109e89b4767f4351ab9bec91d Mon Sep 17 00:00:00 2001
From: Tom
Date: Fri, 6 Aug 2010 11:39:10 -0700
Subject: Implement CreateNewOutfitAttachments. This addresses mantis #199.
---
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
(limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 59731f7..17159b4 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -648,6 +648,8 @@ namespace OpenSim.Region.Framework.Scenes
return;
}
+ if (newName == null) newName = item.Name;
+
AssetBase asset = AssetService.Get(item.AssetID.ToString());
if (asset != null)
@@ -695,6 +697,24 @@ namespace OpenSim.Region.Framework.Scenes
}
///
+ /// Move an item within the agent's inventory, and leave a copy (used in making a new outfit)
+ ///
+ public void MoveInventoryItemsLeaveCopy(IClientAPI remoteClient, List items, UUID destfolder)
+ {
+ List moveitems = new List();
+ foreach (InventoryItemBase b in items)
+ {
+ CopyInventoryItem(remoteClient, 0, remoteClient.AgentId, b.ID, b.Folder, null);
+ InventoryItemBase n = InventoryService.GetItem(b);
+ n.Folder = destfolder;
+ moveitems.Add(n);
+ remoteClient.SendInventoryItemCreateUpdate(n, 0);
+ }
+
+ MoveInventoryItem(remoteClient, moveitems);
+ }
+
+ ///
/// Move an item within the agent's inventory.
///
///
--
cgit v1.1