Make CHANGED_OWNER work for deeding and god-mode in-world change
parent
95e524dde1
commit
4256693a9e
|
@ -2122,7 +2122,10 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
SceneObjectPart[] partList = sog.Parts;
|
||||
|
||||
foreach (SceneObjectPart child in partList)
|
||||
{
|
||||
child.Inventory.ChangeInventoryOwner(ownerID);
|
||||
child.TriggerScriptChangedEvent(Changed.OWNER);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2138,6 +2141,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
child.LastOwnerID = child.OwnerID;
|
||||
child.Inventory.ChangeInventoryOwner(groupID);
|
||||
child.TriggerScriptChangedEvent(Changed.OWNER);
|
||||
}
|
||||
|
||||
sog.SetOwnerId(groupID);
|
||||
|
|
Loading…
Reference in New Issue