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
parent
76d8cceb92
commit
ecd296ad67
|
@ -1645,6 +1645,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
avatar.SendFullUpdateToOtherClient(this);
|
avatar.SendFullUpdateToOtherClient(this);
|
||||||
avatar.SendAppearanceToOtherAgent(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); });
|
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>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue