diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 729572a..04076da 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -2340,5 +2340,21 @@ namespace OpenSim.Region.Environment.Scenes | |||
2340 | { | 2340 | { |
2341 | EventManager.TriggerGetScriptRunning(controllingClient, objectID, itemID); | 2341 | EventManager.TriggerGetScriptRunning(controllingClient, objectID, itemID); |
2342 | } | 2342 | } |
2343 | |||
2344 | void ObjectOwner(IClientAPI remoteClient, UUID ownerID, UUID groupID, List<uint> localIDs) | ||
2345 | { | ||
2346 | if (!ExternalChecks.ExternalChecksCanBeGodLike(remoteClient.AgentId)) | ||
2347 | return; | ||
2348 | |||
2349 | foreach (uint localID in localIDs) | ||
2350 | { | ||
2351 | SceneObjectPart part = GetSceneObjectPart(localID); | ||
2352 | if (part != null && part.ParentGroup != null) | ||
2353 | { | ||
2354 | part.ParentGroup.SetOwnerId(ownerID); | ||
2355 | part.ParentGroup.SetGroup(groupID, remoteClient); | ||
2356 | } | ||
2357 | } | ||
2358 | } | ||
2343 | } | 2359 | } |
2344 | } | 2360 | } |