From 34b308d5b6d2a34e6607aa2b67f01c0f207635b4 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 20 Jun 2016 16:02:37 -0700 Subject: Guard against multiple calls to SetOwnerId on one logical ownership change. --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') 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 public void SetOwnerId(UUID userId) { - ForEachPart(delegate(SceneObjectPart part) + ForEachPart(delegate(SceneObjectPart part) { - part.LastOwnerID = part.OwnerID; - part.OwnerID = userId; - + if (OwnerID != userId) + { + part.LastOwnerID = part.OwnerID; + part.OwnerID = userId; + } }); } -- cgit v1.1