From 23c217dd7b7fe53e5640854183c53da8dd0b25b1 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 18 Sep 2008 15:24:16 +0000 Subject: Kan-Ed fix series. Correct a condition where a prim is linked before it has been persisted for the first time and is then persisted through it's former SOG with a bad offset position. --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5670492..b0b402c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1519,6 +1519,12 @@ namespace OpenSim.Region.Environment.Scenes if (m_isDeleted) return; + // This is what happens when an orphanced link set child prim's + // group was queued when it was linked + // + if (m_rootPart == null) + return; + lock (m_parts) { //if (m_rootPart.m_IsAttachment) @@ -1815,6 +1821,8 @@ namespace OpenSim.Region.Environment.Scenes } m_scene.UnlinkSceneObject(objectGroup.UUID, true); + objectGroup.Children.Clear(); + objectGroup.RootPart = null; // TODO Deleting the original group object may cause problems later on if they have already // made it into the update queue. However, sending out updates for those parts is now -- cgit v1.1