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.
0.6.0-stable
MW 2008-07-23 14:26:30 +00:00
parent 76d8cceb92
commit ecd296ad67
1 changed files with 13 additions and 0 deletions

View File

@ -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);
}
/// <summary>
///
/// </summary>