Call the Cleanup when an agent logs out, when an agent leaves and just

before an agent logs in directly. Intentionally not calling this from MakeRoot
as that would mess up attachment transfer in teleport
viewer-2-initial-appearance
Melanie 2010-11-08 02:37:28 +00:00
parent d8fffd0fb5
commit 2f58d56137
1 changed files with 3 additions and 0 deletions

View File

@ -3154,6 +3154,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
m_eventManager.TriggerClientClosed(agentID, this); m_eventManager.TriggerClientClosed(agentID, this);
CleanDroppedAttachments();
} }
catch (NullReferenceException) catch (NullReferenceException)
{ {
@ -3408,6 +3409,8 @@ namespace OpenSim.Region.Framework.Scenes
if (vialogin) if (vialogin)
{ {
CleanDroppedAttachments();
if (TestBorderCross(agent.startpos, Cardinals.E)) if (TestBorderCross(agent.startpos, Cardinals.E))
{ {
Border crossedBorder = GetCrossedBorder(agent.startpos, Cardinals.E); Border crossedBorder = GetCrossedBorder(agent.startpos, Cardinals.E);