From b91c99b5968fe9fc2cd7a4b94b8b728f4db63aaa Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 24 Jan 2011 03:07:01 +0000 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') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index cff2cf4..67e59c6 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -178,6 +178,8 @@ namespace OpenSim.Region.Framework.Scenes { item.LastOwnerID = item.OwnerID; item.OwnerID = ownerId; + item.PermsMask = 0; + item.PermsGranter = UUID.Zero; } } } @@ -1012,6 +1014,8 @@ namespace OpenSim.Region.Framework.Scenes item.BasePermissions &= item.NextPermissions; item.EveryonePermissions &= item.NextPermissions; item.OwnerChanged = true; + item.PermsMask = 0; + item.PermsGranter = UUID.Zero; } } } -- cgit v1.1