From 249826893db4e5a9fa7f9188fd64798f2a15a80e Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 21 Aug 2007 17:47:01 +0000 Subject: [PATCH] Old group is now deleted from datastore when you link groups/prims, so that the new group can be stored correctly. --- OpenSim/Region/Environment/Scenes/Scene.cs | 1 + OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 02a035d5f1..f674ce2982 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -877,6 +877,7 @@ namespace OpenSim.Region.Environment.Scenes if (Entities.ContainsKey(entID)) { Entities.Remove(entID); + storageManager.DataStore.RemoveObject(entID, this.m_regInfo.SimUUID); return true; } return false; diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 03ad8c5b76..2151ded19a 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -460,6 +460,7 @@ namespace OpenSim.Region.Environment.Scenes m_scene.EventManager.OnBackup -= objectGroup.ProcessBackup; m_scene.DeleteEntity(objectGroup.UUID); + objectGroup.DeleteParts(); this.ScheduleGroupForFullUpdate(); } @@ -741,9 +742,6 @@ namespace OpenSim.Region.Environment.Scenes } } this.AbsolutePosition = newPos; - pos.X = newPos.X; - pos.Y = newPos.Y; - pos.Z = newPos.Z; this.ScheduleGroupForTerseUpdate(); } #endregion