From bc78a6335bbf51dc6e6a727ee5d2a7915899eb34 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 27 Aug 2008 19:06:07 +0000 Subject: Mantis #2058 Remove the physics representation of link set child prims when the link set is deleted. --- OpenSim/Region/Environment/Scenes/Scene.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 9b91176..424c56c 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1756,11 +1756,19 @@ namespace OpenSim.Region.Environment.Scenes { SceneObjectPart rootPart = group.GetChildPart(group.UUID); - if (rootPart.PhysActor != null) + foreach (SceneObjectPart part in group.Children.Values) { - PhysicsScene.RemovePrim(rootPart.PhysActor); - rootPart.PhysActor = null; + if (part.PhysActor != null) + { + PhysicsScene.RemovePrim(part.PhysActor); + part.PhysActor = null; + } } +// if (rootPart.PhysActor != null) +// { +// PhysicsScene.RemovePrim(rootPart.PhysActor); +// rootPart.PhysActor = null; +// } if (UnlinkSceneObject(group.UUID, false)) { -- cgit v1.1