aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-27 19:06:07 +0000
committerMelanie Thielker2008-08-27 19:06:07 +0000
commitbc78a6335bbf51dc6e6a727ee5d2a7915899eb34 (patch)
tree326d3494044ff196235ddd232e45f06211a716ad /OpenSim/Region/Environment/Scenes/Scene.cs
parentFrom: Richard Alimi <ralimi@us.ibm.com> (diff)
downloadopensim-SC_OLD-bc78a6335bbf51dc6e6a727ee5d2a7915899eb34.zip
opensim-SC_OLD-bc78a6335bbf51dc6e6a727ee5d2a7915899eb34.tar.gz
opensim-SC_OLD-bc78a6335bbf51dc6e6a727ee5d2a7915899eb34.tar.bz2
opensim-SC_OLD-bc78a6335bbf51dc6e6a727ee5d2a7915899eb34.tar.xz
Mantis #2058
Remove the physics representation of link set child prims when the link set is deleted.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-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 {