From 587f6ab6459d12a9c6fe02dcf272d954b545d099 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 14 May 2008 21:09:41 +0000 Subject: * Refactor: Remove SceneObjectGroup.GetScenePresences() in favour of a direct call to Scene --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 6c5a68d..c171e78 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -2247,7 +2247,7 @@ namespace OpenSim.Region.Environment.Scenes private void SendObjectPropertiesToClient(LLUUID AgentID) { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { // Ugly reference :( @@ -2277,7 +2277,7 @@ namespace OpenSim.Region.Environment.Scenes /// public void AddFullUpdateToAllAvatars() { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { avatars[i].QueuePartForUpdate(this); @@ -2286,7 +2286,7 @@ namespace OpenSim.Region.Environment.Scenes public void SendFullUpdateToAllClientsExcept(LLUUID agentID) { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { // Ugly reference :( @@ -2309,7 +2309,7 @@ namespace OpenSim.Region.Environment.Scenes /// public void SendFullUpdateToAllClients() { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { // Ugly reference :( @@ -2370,7 +2370,7 @@ namespace OpenSim.Region.Environment.Scenes /// Terse updates public void AddTerseUpdateToAllAvatars() { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { avatars[i].QueuePartForUpdate(this); @@ -2387,7 +2387,7 @@ namespace OpenSim.Region.Environment.Scenes /// public void SendTerseUpdateToAllClients() { - List avatars = m_parentGroup.GetScenePresences(); + List avatars = m_parentGroup.Scene.GetScenePresences(); for (int i = 0; i < avatars.Count; i++) { m_parentGroup.SendPartTerseUpdate(avatars[i].ControllingClient, this); -- cgit v1.1