aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index efd682f..c63424a 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -136,7 +136,7 @@ namespace OpenSim.Region.Environment.Scenes
136 Entities.Add(copy.UUID, copy); 136 Entities.Add(copy.UUID, copy);
137 137
138 copy.ScheduleGroupForFullUpdate(); 138 copy.ScheduleGroupForFullUpdate();
139 /* List<ScenePresence> avatars = this.RequestAvatarList(); 139 /* List<ScenePresence> avatars = this.GetScenePresences();
140 for (int i = 0; i < avatars.Count; i++) 140 for (int i = 0; i < avatars.Count; i++)
141 { 141 {
142 // copy.SendAllChildPrimsToClient(avatars[i].ControllingClient); 142 // copy.SendAllChildPrimsToClient(avatars[i].ControllingClient);
@@ -506,11 +506,10 @@ namespace OpenSim.Region.Environment.Scenes
506 506
507 public void StartAnimation(IClientAPI client, LLUUID animID, int seq) 507 public void StartAnimation(IClientAPI client, LLUUID animID, int seq)
508 { 508 {
509 List<ScenePresence> avatars = RequestAvatarList(); 509 ForEachScenePresence(delegate(ScenePresence presence)
510 for (int i = 0; i < avatars.Count; i++) 510 {
511 { 511 presence.ControllingClient.SendAnimation(animID, seq, client.AgentId);
512 avatars[i].ControllingClient.SendAnimation(animID, seq, client.AgentId); 512 });
513 }
514 } 513 }
515 514
516 public virtual void ProcessObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) 515 public virtual void ProcessObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)