aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-14 15:30:15 +0000
committerMelanie Thielker2008-11-14 15:30:15 +0000
commitb43c056c5f96337eb2ae07da7817250efc4141df (patch)
tree19d03d2f4c851c542d1e8aec63128add3b2eb060 /OpenSim
parent* Implements terrain raw upload. You can now upload your .raw terrain files ... (diff)
downloadopensim-SC_OLD-b43c056c5f96337eb2ae07da7817250efc4141df.zip
opensim-SC_OLD-b43c056c5f96337eb2ae07da7817250efc4141df.tar.gz
opensim-SC_OLD-b43c056c5f96337eb2ae07da7817250efc4141df.tar.bz2
opensim-SC_OLD-b43c056c5f96337eb2ae07da7817250efc4141df.tar.xz
Detach dropped attachments from the scene presence so they don't get cleaned
on logout
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 4f00843..c51f235 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -789,6 +789,11 @@ namespace OpenSim.Region.Environment.Scenes
789 public void DetachToGround() 789 public void DetachToGround()
790 { 790 {
791 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar); 791 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar);
792 if (avatar == null)
793 return;
794
795 avatar.RemoveAttachment(this);
796
792 Vector3 detachedpos = new Vector3(127f,127f,127f); 797 Vector3 detachedpos = new Vector3(127f,127f,127f);
793 if (avatar == null) 798 if (avatar == null)
794 return; 799 return;