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:
MW
2008-07-23 14:26:30 +00:00
parent 76d8cceb92
commit ecd296ad67

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>