aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 9a418b8..c779a5d 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -714,8 +714,13 @@ namespace OpenSim.Region.Environment.Scenes
714 if (avatar.IsChildAgent) return; 714 if (avatar.IsChildAgent) return;
715 715
716 DetachFromBackup(); 716 DetachFromBackup();
717 m_rootPart.AttachedAvatar = agentID;
718 717
718 // Remove from database and parcel prim count
719 //
720 m_scene.DeleteFromStorage(UUID);
721 m_scene.EventManager.TriggerParcelPrimCountTainted();
722
723 m_rootPart.AttachedAvatar = agentID;
719 724
720 if (m_rootPart.PhysActor != null) 725 if (m_rootPart.PhysActor != null)
721 { 726 {
@@ -2082,7 +2087,13 @@ namespace OpenSim.Region.Environment.Scenes
2082 SceneObjectPart selectionPart = GetChildPart(localID); 2087 SceneObjectPart selectionPart = GetChildPart(localID);
2083 2088
2084 if (data[47] != 0) // Temporary 2089 if (data[47] != 0) // Temporary
2090 {
2085 DetachFromBackup(); 2091 DetachFromBackup();
2092 // Remove from database and parcel prim count
2093 //
2094 m_scene.DeleteFromStorage(UUID);
2095 m_scene.EventManager.TriggerParcelPrimCountTainted();
2096 }
2086 2097
2087 if (selectionPart != null) 2098 if (selectionPart != null)
2088 { 2099 {