void AvatarAnimationChanged(object sender, AvatarAnimationEventArgs e)
{
if (InvokeRequired)
{
BeginInvoke(new MethodInvoker(() => AvatarAnimationChanged(sender, e)));
return;
}
// We don't currently have UUID -> RenderAvatar mapping so we need to walk the list
foreach (RenderAvatar av in Avatars.Values)
{
if (av.avatar.ID == e.AvatarID)
{
UpdateAvatarAnimations(av);
break;
}
}
}