aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2010-05-03 01:40:24 +0100
committerMelanie2010-05-03 01:40:24 +0100
commit9f8acbfe3e6206893822bc3b7edbadbd7cae7a16 (patch)
treedd9485b0c6b4cbfa0399501f43d7d70d4ed438aa /OpenSim/Region/Framework
parentMake the IUserAccountData properly unpack the god mode data, so grid gods (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-9f8acbfe3e6206893822bc3b7edbadbd7cae7a16.zip
opensim-SC_OLD-9f8acbfe3e6206893822bc3b7edbadbd7cae7a16.tar.gz
opensim-SC_OLD-9f8acbfe3e6206893822bc3b7edbadbd7cae7a16.tar.bz2
opensim-SC_OLD-9f8acbfe3e6206893822bc3b7edbadbd7cae7a16.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs3
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs6
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 }