aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorDiva Canto2016-06-20 16:02:37 -0700
committerDiva Canto2016-06-20 16:02:37 -0700
commit34b308d5b6d2a34e6607aa2b67f01c0f207635b4 (patch)
treeaf9a8644754164944355b60b595fbc9aed801ab7 /OpenSim/Region/Framework/Scenes
parentStill mantis #7929: apply next owner mask to the new owner, the group. (diff)
downloadopensim-SC-34b308d5b6d2a34e6607aa2b67f01c0f207635b4.zip
opensim-SC-34b308d5b6d2a34e6607aa2b67f01c0f207635b4.tar.gz
opensim-SC-34b308d5b6d2a34e6607aa2b67f01c0f207635b4.tar.bz2
opensim-SC-34b308d5b6d2a34e6607aa2b67f01c0f207635b4.tar.xz
Guard against multiple calls to SetOwnerId on one logical ownership change.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index dc5f869..e226196 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2123,11 +2123,13 @@ namespace OpenSim.Region.Framework.Scenes
2123 2123
2124 public void SetOwnerId(UUID userId) 2124 public void SetOwnerId(UUID userId)
2125 { 2125 {
2126 ForEachPart(delegate(SceneObjectPart part) 2126 ForEachPart(delegate(SceneObjectPart part)
2127 { 2127 {
2128 part.LastOwnerID = part.OwnerID; 2128 if (OwnerID != userId)
2129 part.OwnerID = userId; 2129 {
2130 2130 part.LastOwnerID = part.OwnerID;
2131 part.OwnerID = userId;
2132 }
2131 }); 2133 });
2132 } 2134 }
2133 2135