From ecd296ad6737b2770f2f556c2fec6cfecc1851f8 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 23 Jul 2008 14:26:30 +0000 Subject: Send Animation data for other avatars to new users joining the region (tested on new logins, but need to test that it is triggered on teleports). This should fix the sitting avatars appearing in a T pose to new users. And possible other animation problems. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 2bbdac1..57b717c 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -1645,6 +1645,7 @@ namespace OpenSim.Region.Environment.Scenes { avatar.SendFullUpdateToOtherClient(this); avatar.SendAppearanceToOtherAgent(this); + avatar.SendAnimPackToClient(this.ControllingClient); } } } @@ -1773,6 +1774,18 @@ namespace OpenSim.Region.Environment.Scenes delegate(IClientAPI client) { client.SendAnimations(animations, seqs, m_controllingClient.AgentId); }); } + public void SendAnimPackToClient(IClientAPI client) + { + if (m_isChildAgent) + return; + LLUUID[] animIDs; + int[] sequenceNums; + + m_animations.GetArrays(out animIDs, out sequenceNums); + + client.SendAnimations(animIDs, sequenceNums, m_controllingClient.AgentId); + } + /// /// /// -- cgit v1.1