aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs22
1 files changed, 1 insertions, 21 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 924b61f..639c8dd 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2744,28 +2744,10 @@ namespace OpenSim.Region.Framework.Scenes
2744 } 2744 }
2745 2745
2746 /// <summary> 2746 /// <summary>
2747 /// Set the owner of the root part. 2747 /// Set the owner of all linkset.
2748 /// </summary> 2748 /// </summary>
2749 /// <param name="part"></param>
2750 /// <param name="cAgentID"></param> 2749 /// <param name="cAgentID"></param>
2751 /// <param name="cGroupID"></param> 2750 /// <param name="cGroupID"></param>
2752 public void SetRootPartOwner(SceneObjectPart part, UUID cAgentID, UUID cGroupID)
2753 {
2754 if(part.GroupID != part.OwnerID && cGroupID != part.OwnerID)
2755 part.LastOwnerID = part.OwnerID;
2756 part.OwnerID = cAgentID;
2757 part.GroupID = cGroupID;
2758
2759 if (part.OwnerID != cAgentID)
2760 {
2761 // Apply Next Owner Permissions if we're not bypassing permissions
2762 if (!m_scene.Permissions.BypassPermissions())
2763 ApplyNextOwnerPermissions();
2764 }
2765
2766 part.ScheduleFullUpdate();
2767 }
2768
2769 public void SetOwner(UUID cAgentID, UUID cGroupID) 2751 public void SetOwner(UUID cAgentID, UUID cGroupID)
2770 { 2752 {
2771 SceneObjectPart rpart = RootPart; 2753 SceneObjectPart rpart = RootPart;
@@ -2788,8 +2770,6 @@ namespace OpenSim.Region.Framework.Scenes
2788 rpart.ScheduleFullUpdate(); 2770 rpart.ScheduleFullUpdate();
2789 } 2771 }
2790 2772
2791
2792
2793 /// <summary> 2773 /// <summary>
2794 /// Make a copy of the given part. 2774 /// Make a copy of the given part.
2795 /// </summary> 2775 /// </summary>