aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework
diff options
context:
space:
mode:
authorMW2007-03-29 20:55:44 +0000
committerMW2007-03-29 20:55:44 +0000
commitb2ae86dd6adfc41925040905f01cec7078b77353 (patch)
tree1b121ddd9c897f4f6742416180e3fc3c78d2ff24 /OpenSim.Framework
parent* Moved LoginServer and LocalUserProfileManager to OpenSim.Servers (diff)
downloadopensim-SC_OLD-b2ae86dd6adfc41925040905f01cec7078b77353.zip
opensim-SC_OLD-b2ae86dd6adfc41925040905f01cec7078b77353.tar.gz
opensim-SC_OLD-b2ae86dd6adfc41925040905f01cec7078b77353.tar.bz2
opensim-SC_OLD-b2ae86dd6adfc41925040905f01cec7078b77353.tar.xz
When you change the name of a inventory item, it should no longer revert after a logout / login
Diffstat (limited to 'OpenSim.Framework')
-rw-r--r--OpenSim.Framework/AgentInventory.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim.Framework/AgentInventory.cs b/OpenSim.Framework/AgentInventory.cs
index 8032455..f1f5847 100644
--- a/OpenSim.Framework/AgentInventory.cs
+++ b/OpenSim.Framework/AgentInventory.cs
@@ -2,6 +2,7 @@ using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using libsecondlife.Packets;
5using OpenSim.Framework.Assets; 6using OpenSim.Framework.Assets;
6 7
7namespace OpenSim.Framework.Inventory 8namespace OpenSim.Framework.Inventory
@@ -105,7 +106,7 @@ namespace OpenSim.Framework.Inventory
105 return false; 106 return false;
106 } 107 }
107 108
108 public bool UpdateItem(LLUUID itemID, AssetBase asset) 109 public bool UpdateItemAsset(LLUUID itemID, AssetBase asset)
109 { 110 {
110 if(this.InventoryItems.ContainsKey(itemID)) 111 if(this.InventoryItems.ContainsKey(itemID))
111 { 112 {
@@ -117,6 +118,20 @@ namespace OpenSim.Framework.Inventory
117 return true; 118 return true;
118 } 119 }
119 120
121 public bool UpdateItemDetails(LLUUID itemID, UpdateInventoryItemPacket.InventoryDataBlock packet)
122 {
123 Console.WriteLine("updating inventory item details");
124 if (this.InventoryItems.ContainsKey(itemID))
125 {
126 Console.WriteLine("changing name to "+ Helpers.FieldToString(packet.Name));
127 InventoryItem Item = this.InventoryItems[itemID];
128 Item.Name = Helpers.FieldToString(packet.Name);
129 Console.WriteLine("updated inventory item " + itemID.ToStringHyphenated());
130 //TODO need to update the rest of the info
131 }
132 return true;
133 }
134
120 public LLUUID AddToInventory(LLUUID folderID, AssetBase asset) 135 public LLUUID AddToInventory(LLUUID folderID, AssetBase asset)
121 { 136 {
122 if (this.InventoryFolders.ContainsKey(folderID)) 137 if (this.InventoryFolders.ContainsKey(folderID))