From 81e220af8d611f401bf128bfdc1bd3d270c14f15 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 20 Oct 2008 22:14:24 +0000 Subject: [PATCH] Mantis #2439 MemberwiseClone() also clones the "already backed up" flag, preventing prims created by drag-copying from being persisted. If such a prim is made the root prims of a link set, the entire set will not be persisted. Fixed now. --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 7f1ecaeb94..dd7628dcb1 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1009,7 +1009,7 @@ namespace OpenSim.Region.Environment.Scenes // that they don't happen, otherwise the deleted objects will reappear m_isDeleted = true; -// DetachFromBackup(); + DetachFromBackup(); foreach (SceneObjectPart part in m_parts.Values) { @@ -1278,6 +1278,7 @@ namespace OpenSim.Region.Environment.Scenes public SceneObjectGroup Copy(UUID cAgentID, UUID cGroupID, bool userExposed) { SceneObjectGroup dupe = (SceneObjectGroup) MemberwiseClone(); + dupe.m_isBackedUp = false; dupe.m_parts = new Dictionary(); dupe.m_parts.Clear(); //dupe.OwnerID = AgentID; @@ -1860,6 +1861,7 @@ namespace OpenSim.Region.Environment.Scenes // The traffic caused is always going to be pretty minor, so it's not high priority //objectGroup.DeleteGroup(); + AttachToBackup(); HasGroupChanged = true; ScheduleGroupForFullUpdate(); }