From 8641eb65b140d30a44bf9f4fb47d9cb3fcc77e34 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 20 Jul 2010 14:28:17 -0700 Subject: [PATCH] Restore lines that have been removed due to previous merge conflict. --- .../Region/Framework/Scenes/SceneObjectPartInventory.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 21c5368326..9eb92be505 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -598,10 +598,14 @@ namespace OpenSim.Region.Framework.Scenes // changed since permissions were last set. if (item.GroupPermissions != (uint)PermissionMask.None) item.GroupID = m_part.GroupID; - + if (item.AssetID == UUID.Zero) + item.AssetID = it.AssetID; + + lock (m_items) { - item.AssetID = m_items[item.ItemID].AssetID; + m_items[item.ItemID] = item; + m_inventorySerial++; } if (fireScriptEvents)