diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 8ceb109..3e78a08 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4556,6 +4556,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4556 | foreach (SceneObjectPart child in partList) | 4556 | foreach (SceneObjectPart child in partList) |
4557 | { | 4557 | { |
4558 | child.Inventory.ChangeInventoryOwner(remoteClient.AgentId); | 4558 | child.Inventory.ChangeInventoryOwner(remoteClient.AgentId); |
4559 | child.TriggerScriptChangedEvent(Changed.OWNER); | ||
4559 | child.ApplyNextOwnerPermissions(); | 4560 | child.ApplyNextOwnerPermissions(); |
4560 | } | 4561 | } |
4561 | } | 4562 | } |
@@ -4565,6 +4566,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4565 | 4566 | ||
4566 | group.HasGroupChanged = true; | 4567 | group.HasGroupChanged = true; |
4567 | part.GetProperties(remoteClient); | 4568 | part.GetProperties(remoteClient); |
4569 | part.TriggerScriptChangedEvent(Changed.OWNER); | ||
4570 | group.ResumeScripts(); | ||
4568 | part.ScheduleFullUpdate(); | 4571 | part.ScheduleFullUpdate(); |
4569 | 4572 | ||
4570 | break; | 4573 | break; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index bc3225a..64282d1 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -1082,12 +1082,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1082 | item.CurrentPermissions &= ~(uint)PermissionMask.Modify; | 1082 | item.CurrentPermissions &= ~(uint)PermissionMask.Modify; |
1083 | item.CurrentPermissions |= 8; | 1083 | item.CurrentPermissions |= 8; |
1084 | } | 1084 | } |
1085 | item.OwnerChanged = true; | ||
1085 | item.CurrentPermissions &= item.NextPermissions; | 1086 | item.CurrentPermissions &= item.NextPermissions; |
1086 | item.BasePermissions &= item.NextPermissions; | 1087 | item.BasePermissions &= item.NextPermissions; |
1087 | item.EveryonePermissions &= item.NextPermissions; | 1088 | item.EveryonePermissions &= item.NextPermissions; |
1088 | } | 1089 | } |
1089 | |||
1090 | m_part.TriggerScriptChangedEvent(Changed.OWNER); | ||
1091 | } | 1090 | } |
1092 | 1091 | ||
1093 | public void ApplyGodPermissions(uint perms) | 1092 | public void ApplyGodPermissions(uint perms) |
@@ -1180,7 +1179,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1180 | foreach (IScriptModule engine in engines) | 1179 | foreach (IScriptModule engine in engines) |
1181 | { | 1180 | { |
1182 | if (engine != null) | 1181 | if (engine != null) |
1182 | { | ||
1183 | engine.PostScriptEvent(item.ItemID, "changed", new Object[] { Changed.OWNER }); | ||
1183 | engine.ResumeScript(item.ItemID); | 1184 | engine.ResumeScript(item.ItemID); |
1185 | } | ||
1184 | } | 1186 | } |
1185 | } | 1187 | } |
1186 | } | 1188 | } |