From 492e72b21a340d70fce4eea3ea831d6de720bf23 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 15 Jan 2008 04:27:02 +0000 Subject: * Delinking doesn't leave invisible physical objects behind anymore --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index b591802..2e0b916 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -917,9 +917,15 @@ namespace OpenSim.Region.Environment.Scenes if (null != linkPart) { + // Remove the part from this object m_parts.Remove(linkPart.UUID); linkPart.ParentID = 0; + + if (linkPart.PhysActor != null) + { + m_scene.PhysicsScene.RemovePrim(linkPart.PhysActor); + } // We need to reset the child part's position // ready for life as a separate object after being a part of another object Quaternion parentRot -- cgit v1.1