From b2ae86dd6adfc41925040905f01cec7078b77353 Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 29 Mar 2007 20:55:44 +0000 Subject: When you change the name of a inventory item, it should no longer revert after a logout / login --- OpenSim.RegionServer/SimClient.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'OpenSim.RegionServer/SimClient.cs') diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs index 068e148..ec6d3dc 100644 --- a/OpenSim.RegionServer/SimClient.cs +++ b/OpenSim.RegionServer/SimClient.cs @@ -49,7 +49,6 @@ namespace OpenSim /// public class SimClient { - public LLUUID AgentID; public LLUUID SessionID; public LLUUID SecureSessionID = LLUUID.Zero; @@ -354,6 +353,7 @@ namespace OpenSim break; case PacketType.UpdateInventoryItem: UpdateInventoryItemPacket update = (UpdateInventoryItemPacket)Pack; + Console.WriteLine(Pack.ToString()); for (int i = 0; i < update.InventoryData.Length; i++) { if (update.InventoryData[i].TransactionID != LLUUID.Zero) @@ -362,7 +362,7 @@ namespace OpenSim if (asset != null) { Console.WriteLine("updating inventory item, found asset" + asset.FullID.ToStringHyphenated() + " already in cache"); - m_inventoryCache.UpdateInventoryItem(this, update.InventoryData[i].ItemID, asset); + m_inventoryCache.UpdateInventoryItemAsset(this, update.InventoryData[i].ItemID, asset); } else { @@ -370,7 +370,7 @@ namespace OpenSim if (asset != null) { Console.WriteLine("updating inventory item, adding asset" + asset.FullID.ToStringHyphenated() + " to cache"); - m_inventoryCache.UpdateInventoryItem(this, update.InventoryData[i].ItemID, asset); + m_inventoryCache.UpdateInventoryItemAsset(this, update.InventoryData[i].ItemID, asset); } else { @@ -378,6 +378,10 @@ namespace OpenSim } } } + else + { + m_inventoryCache.UpdateInventoryItemDetails(this, update.InventoryData[i].ItemID, update.InventoryData[i]); ; + } } break; case PacketType.ViewerEffect: -- cgit v1.1