aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorTom2010-08-06 11:39:10 -0700
committerTom2010-08-06 11:39:10 -0700
commit330343505ca2d6d109e89b4767f4351ab9bec91d (patch)
treef4aea7182e3ca13f23a94b4b47499937bb473cbb /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC-330343505ca2d6d109e89b4767f4351ab9bec91d.zip
opensim-SC-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.gz
opensim-SC-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.bz2
opensim-SC-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.xz
Implement CreateNewOutfitAttachments. This addresses mantis #199.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs20
1 files changed, 20 insertions, 0 deletions
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
648 return; 648 return;
649 } 649 }
650 650
651 if (newName == null) newName = item.Name;
652
651 AssetBase asset = AssetService.Get(item.AssetID.ToString()); 653 AssetBase asset = AssetService.Get(item.AssetID.ToString());
652 654
653 if (asset != null) 655 if (asset != null)
@@ -695,6 +697,24 @@ namespace OpenSim.Region.Framework.Scenes
695 } 697 }
696 698
697 /// <summary> 699 /// <summary>
700 /// Move an item within the agent's inventory, and leave a copy (used in making a new outfit)
701 /// </summary>
702 public void MoveInventoryItemsLeaveCopy(IClientAPI remoteClient, List<InventoryItemBase> items, UUID destfolder)
703 {
704 List<InventoryItemBase> moveitems = new List<InventoryItemBase>();
705 foreach (InventoryItemBase b in items)
706 {
707 CopyInventoryItem(remoteClient, 0, remoteClient.AgentId, b.ID, b.Folder, null);
708 InventoryItemBase n = InventoryService.GetItem(b);
709 n.Folder = destfolder;
710 moveitems.Add(n);
711 remoteClient.SendInventoryItemCreateUpdate(n, 0);
712 }
713
714 MoveInventoryItem(remoteClient, moveitems);
715 }
716
717 /// <summary>
698 /// Move an item within the agent's inventory. 718 /// Move an item within the agent's inventory.
699 /// </summary> 719 /// </summary>
700 /// <param name="remoteClient"></param> 720 /// <param name="remoteClient"></param>