From c91a79c3d2d2effe2adfe58ebe79de91bed6f9ff Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 27 Apr 2009 14:04:01 +0000 Subject: From: Alan Webb If an avatar is sitting when the client disconnects, the avatar is not disassociated from the SOG on which (s)he was sat. This produces any, and varied, effects. I have updated RemoveCLient in Scene, to check, and stand the client up immediately prior to disconnect. This seems like the most robust way to handle the situation. Though in this case it might be worth factoring out the animations from other standup processing. It does no harm, but in this case it is entirely redundant. --- OpenSim/Region/Framework/Scenes/Scene.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index c7d32cc..8d134df 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2196,6 +2196,11 @@ namespace OpenSim.Region.Framework.Scenes childagentYN = avatar.IsChildAgent; } + if (avatar.ParentID != 0) + { + avatar.StandUp(); + } + try { m_log.DebugFormat( -- cgit v1.1