Reduce number of AvatarAnimations sent with large number of avatars
parent
3d0860ae61
commit
54a5b6f434
|
@ -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>
|
||||||
|
@ -451,4 +452,4 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||||
m_scenePresence = null;
|
m_scenePresence = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue