mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user