From 649d9ef93445439f6e222802757e1bc7d08d919c Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 24 Jan 2011 02:20:54 +0100 Subject: Fix script data not being reset as it should be --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 2ee8c07..7e59b10 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -189,6 +189,8 @@ namespace OpenSim.Region.Framework.Scenes { item.LastOwnerID = item.OwnerID; item.OwnerID = ownerId; + item.PermsMask = 0; + item.PermsGranter = UUID.Zero; } } m_items.LockItemsForWrite(false); @@ -1216,6 +1218,8 @@ namespace OpenSim.Region.Framework.Scenes item.CurrentPermissions &= item.NextPermissions; item.BasePermissions &= item.NextPermissions; item.EveryonePermissions &= item.NextPermissions; + item.PermsMask = 0; + item.PermsGranter = UUID.Zero; } } -- cgit v1.1