diff options
author | UbitUmarov | 2017-01-16 20:37:04 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-16 20:37:04 +0000 |
commit | 2b5ef892720c7dfd65e20104cf9ba9bd701463c1 (patch) | |
tree | cfd9668f671d68ac6b560accae8b028b90c5b37b /OpenSim/Region/Framework/Scenes | |
parent | replace calls to SetOwnerId and SetRootPartOwner by a single new SetOwner() s... (diff) | |
download | opensim-SC_OLD-2b5ef892720c7dfd65e20104cf9ba9bd701463c1.zip opensim-SC_OLD-2b5ef892720c7dfd65e20104cf9ba9bd701463c1.tar.gz opensim-SC_OLD-2b5ef892720c7dfd65e20104cf9ba9bd701463c1.tar.bz2 opensim-SC_OLD-2b5ef892720c7dfd65e20104cf9ba9bd701463c1.tar.xz |
remove now unused SetRootPartOwner()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 22 |
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> |