Reduce number of AvatarAnimations sent with large number of avatars

slimupdates
Robert Adams 2010-04-12 12:36:06 -07:00 committed by John Hurliman
parent 3d0860ae61
commit 54a5b6f434
2 changed files with 8 additions and 6 deletions

View File

@ -419,11 +419,12 @@ namespace OpenSim.Region.Framework.Scenes.Animation
if (m_scenePresence.IsChildAgent)
return;
m_scenePresence.Scene.ForEachScenePresence(
delegate(ScenePresence SP)
{
SP.Animator.SendAnimPack();
});
UUID[] animIDs;
int[] sequenceNums;
UUID[] objectIDs;
m_animations.GetArrays(out animIDs, out sequenceNums, out objectIDs);
client.SendAnimations(animIDs, sequenceNums, m_scenePresence.ControllingClient.AgentId, objectIDs);
}
/// <summary>

View File

@ -912,6 +912,7 @@ namespace OpenSim.Region.Framework.Scenes
m_isChildAgent = false;
// send the animations of the other presences to me
m_scene.ForEachScenePresence(delegate(ScenePresence presence)
{
if (presence != this)