Detach dropped attachments from the scene presence so they don't get cleaned
on logout0.6.1-post-fixes
parent
3e4b094921
commit
b43c056c5f
|
@ -789,6 +789,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void DetachToGround()
|
||||
{
|
||||
ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar);
|
||||
if (avatar == null)
|
||||
return;
|
||||
|
||||
avatar.RemoveAttachment(this);
|
||||
|
||||
Vector3 detachedpos = new Vector3(127f,127f,127f);
|
||||
if (avatar == null)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue