mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Delinking doesn't leave invisible physical objects behind anymore
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user