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) if (m_scenePresence.IsChildAgent)
return; return;
m_scenePresence.Scene.ForEachScenePresence( UUID[] animIDs;
delegate(ScenePresence SP) int[] sequenceNums;
{ UUID[] objectIDs;
SP.Animator.SendAnimPack();
}); m_animations.GetArrays(out animIDs, out sequenceNums, out objectIDs);
client.SendAnimations(animIDs, sequenceNums, m_scenePresence.ControllingClient.AgentId, objectIDs);
} }
/// <summary> /// <summary>

View File

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