Make in-place sale send CHANGED_OWNER again

slimupdates
Melanie 2010-05-03 01:30:57 +01:00
parent 45301d8a49
commit 7a8ad1ceb2
1 changed files with 3 additions and 0 deletions

View File

@ -4522,6 +4522,7 @@ namespace OpenSim.Region.Framework.Scenes
foreach (SceneObjectPart child in partList) foreach (SceneObjectPart child in partList)
{ {
child.Inventory.ChangeInventoryOwner(remoteClient.AgentId); child.Inventory.ChangeInventoryOwner(remoteClient.AgentId);
child.TriggerScriptChangedEvent(Changed.OWNER);
child.ApplyNextOwnerPermissions(); child.ApplyNextOwnerPermissions();
} }
} }
@ -4531,6 +4532,8 @@ namespace OpenSim.Region.Framework.Scenes
group.HasGroupChanged = true; group.HasGroupChanged = true;
part.GetProperties(remoteClient); part.GetProperties(remoteClient);
part.TriggerScriptChangedEvent(Changed.OWNER);
group.ResumeScripts();
part.ScheduleFullUpdate(); part.ScheduleFullUpdate();
break; break;