Remove the physics representation of link set child prims when the
link set is deleted.
0.6.0-stable
Melanie Thielker 2008-08-27 19:06:07 +00:00
parent fc81ddc1d1
commit bc78a6335b
1 changed files with 11 additions and 3 deletions

View File

@ -1756,11 +1756,19 @@ namespace OpenSim.Region.Environment.Scenes
{ {
SceneObjectPart rootPart = group.GetChildPart(group.UUID); SceneObjectPart rootPart = group.GetChildPart(group.UUID);
if (rootPart.PhysActor != null) foreach (SceneObjectPart part in group.Children.Values)
{ {
PhysicsScene.RemovePrim(rootPart.PhysActor); if (part.PhysActor != null)
rootPart.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)) if (UnlinkSceneObject(group.UUID, false))
{ {