diff options
author | Diva Canto | 2016-06-20 16:02:37 -0700 |
---|---|---|
committer | Diva Canto | 2016-06-20 16:02:37 -0700 |
commit | 34b308d5b6d2a34e6607aa2b67f01c0f207635b4 (patch) | |
tree | af9a8644754164944355b60b595fbc9aed801ab7 /OpenSim/Region/Framework/Scenes | |
parent | Still mantis #7929: apply next owner mask to the new owner, the group. (diff) | |
download | opensim-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.cs | 10 |
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 | ||