Remove the physics representation of link set child prims when the
link set is deleted.
This commit is contained in:
Melanie Thielker
2008-08-27 19:06:07 +00:00
parent fc81ddc1d1
commit bc78a6335b

View File

@@ -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))
{