aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs14
1 files changed, 11 insertions, 3 deletions
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
1756 { 1756 {
1757 SceneObjectPart rootPart = group.GetChildPart(group.UUID); 1757 SceneObjectPart rootPart = group.GetChildPart(group.UUID);
1758 1758
1759 if (rootPart.PhysActor != null) 1759 foreach (SceneObjectPart part in group.Children.Values)
1760 { 1760 {
1761 PhysicsScene.RemovePrim(rootPart.PhysActor); 1761 if (part.PhysActor != null)
1762 rootPart.PhysActor = null; 1762 {
1763 PhysicsScene.RemovePrim(part.PhysActor);
1764 part.PhysActor = null;
1765 }
1763 } 1766 }
1767// if (rootPart.PhysActor != null)
1768// {
1769// PhysicsScene.RemovePrim(rootPart.PhysActor);
1770// rootPart.PhysActor = null;
1771// }
1764 1772
1765 if (UnlinkSceneObject(group.UUID, false)) 1773 if (UnlinkSceneObject(group.UUID, false))
1766 { 1774 {