* Delinking doesn't leave invisible physical objects behind anymore

This commit is contained in:
Teravus Ovares
2008-01-15 04:27:02 +00:00
parent 45e945616b
commit 492e72b21a

View File

@@ -917,9 +917,15 @@ namespace OpenSim.Region.Environment.Scenes
if (null != linkPart)
{
// Remove the part from this object
m_parts.Remove(linkPart.UUID);
linkPart.ParentID = 0;
if (linkPart.PhysActor != null)
{
m_scene.PhysicsScene.RemovePrim(linkPart.PhysActor);
}
// We need to reset the child part's position
// ready for life as a separate object after being a part of another object
Quaternion parentRot