* Delinking doesn't leave invisible physical objects behind anymore

ThreadPoolClientBranch
Teravus Ovares 2008-01-15 04:27:02 +00:00
parent 45e945616b
commit 492e72b21a
1 changed files with 6 additions and 0 deletions

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