mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Detach dropped attachments from the scene presence so they don't get cleaned
on logout
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user