From e713b7e3bbfdae81add08b2ef48ea7f79812f4e0 Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 26 Apr 2011 23:18:52 +0200 Subject: Try to repair attachments ion the fly if they are detached and reattached. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 3a5b05d..9e48447 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4038,6 +4038,10 @@ if (m_animator.m_jumping) force.Z = m_animator.m_jumpVelocity; // add for ju { lock (m_attachments) { + // This may be true when the attachment comes back + // from serialization after login. Clear it. + gobj.IsDeleted = false; + m_attachments.Add(gobj); } } -- cgit v1.1