aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Animation
diff options
context:
space:
mode:
authorRobert Adams2010-04-12 12:36:06 -0700
committerJohn Hurliman2010-04-13 18:50:08 -0700
commit54a5b6f4344275342177f6b3c9a2662909dd763a (patch)
tree3652d3739e6119684cfb0e553f87b4b251da5eef /OpenSim/Region/Framework/Scenes/Animation
parentthanks lkalif for Mantis #4676 - a patch that adds support for inventory links (diff)
downloadopensim-SC_OLD-54a5b6f4344275342177f6b3c9a2662909dd763a.zip
opensim-SC_OLD-54a5b6f4344275342177f6b3c9a2662909dd763a.tar.gz
opensim-SC_OLD-54a5b6f4344275342177f6b3c9a2662909dd763a.tar.bz2
opensim-SC_OLD-54a5b6f4344275342177f6b3c9a2662909dd763a.tar.xz
Reduce number of AvatarAnimations sent with large number of avatars
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation')
-rw-r--r--OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
index 7307662..de4c5fb 100644
--- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
+++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
@@ -419,11 +419,12 @@ namespace OpenSim.Region.Framework.Scenes.Animation
419 if (m_scenePresence.IsChildAgent) 419 if (m_scenePresence.IsChildAgent)
420 return; 420 return;
421 421
422 m_scenePresence.Scene.ForEachScenePresence( 422 UUID[] animIDs;
423 delegate(ScenePresence SP) 423 int[] sequenceNums;
424 { 424 UUID[] objectIDs;
425 SP.Animator.SendAnimPack(); 425
426 }); 426 m_animations.GetArrays(out animIDs, out sequenceNums, out objectIDs);
427 client.SendAnimations(animIDs, sequenceNums, m_scenePresence.ControllingClient.AgentId, objectIDs);
427 } 428 }
428 429
429 /// <summary> 430 /// <summary>
@@ -451,4 +452,4 @@ namespace OpenSim.Region.Framework.Scenes.Animation
451 m_scenePresence = null; 452 m_scenePresence = null;
452 } 453 }
453 } 454 }
454} \ No newline at end of file 455}