aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-14 21:09:41 +0000
committerJustin Clarke Casey2008-05-14 21:09:41 +0000
commit587f6ab6459d12a9c6fe02dcf272d954b545d099 (patch)
treebc67cec592a8ceed816761aa2fb3990f3d021e8d /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
parent*SVN Executable on HttpServer.dll (diff)
downloadopensim-SC_OLD-587f6ab6459d12a9c6fe02dcf272d954b545d099.zip
opensim-SC_OLD-587f6ab6459d12a9c6fe02dcf272d954b545d099.tar.gz
opensim-SC_OLD-587f6ab6459d12a9c6fe02dcf272d954b545d099.tar.bz2
opensim-SC_OLD-587f6ab6459d12a9c6fe02dcf272d954b545d099.tar.xz
* Refactor: Remove SceneObjectGroup.GetScenePresences() in favour of a direct call to Scene
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs12
1 files changed, 6 insertions, 6 deletions
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
2247 2247
2248 private void SendObjectPropertiesToClient(LLUUID AgentID) 2248 private void SendObjectPropertiesToClient(LLUUID AgentID)
2249 { 2249 {
2250 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2250 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2251 for (int i = 0; i < avatars.Count; i++) 2251 for (int i = 0; i < avatars.Count; i++)
2252 { 2252 {
2253 // Ugly reference :( 2253 // Ugly reference :(
@@ -2277,7 +2277,7 @@ namespace OpenSim.Region.Environment.Scenes
2277 /// </summary> 2277 /// </summary>
2278 public void AddFullUpdateToAllAvatars() 2278 public void AddFullUpdateToAllAvatars()
2279 { 2279 {
2280 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2280 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2281 for (int i = 0; i < avatars.Count; i++) 2281 for (int i = 0; i < avatars.Count; i++)
2282 { 2282 {
2283 avatars[i].QueuePartForUpdate(this); 2283 avatars[i].QueuePartForUpdate(this);
@@ -2286,7 +2286,7 @@ namespace OpenSim.Region.Environment.Scenes
2286 2286
2287 public void SendFullUpdateToAllClientsExcept(LLUUID agentID) 2287 public void SendFullUpdateToAllClientsExcept(LLUUID agentID)
2288 { 2288 {
2289 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2289 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2290 for (int i = 0; i < avatars.Count; i++) 2290 for (int i = 0; i < avatars.Count; i++)
2291 { 2291 {
2292 // Ugly reference :( 2292 // Ugly reference :(
@@ -2309,7 +2309,7 @@ namespace OpenSim.Region.Environment.Scenes
2309 /// </summary> 2309 /// </summary>
2310 public void SendFullUpdateToAllClients() 2310 public void SendFullUpdateToAllClients()
2311 { 2311 {
2312 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2312 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2313 for (int i = 0; i < avatars.Count; i++) 2313 for (int i = 0; i < avatars.Count; i++)
2314 { 2314 {
2315 // Ugly reference :( 2315 // Ugly reference :(
@@ -2370,7 +2370,7 @@ namespace OpenSim.Region.Environment.Scenes
2370 /// Terse updates 2370 /// Terse updates
2371 public void AddTerseUpdateToAllAvatars() 2371 public void AddTerseUpdateToAllAvatars()
2372 { 2372 {
2373 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2373 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2374 for (int i = 0; i < avatars.Count; i++) 2374 for (int i = 0; i < avatars.Count; i++)
2375 { 2375 {
2376 avatars[i].QueuePartForUpdate(this); 2376 avatars[i].QueuePartForUpdate(this);
@@ -2387,7 +2387,7 @@ namespace OpenSim.Region.Environment.Scenes
2387 /// </summary> 2387 /// </summary>
2388 public void SendTerseUpdateToAllClients() 2388 public void SendTerseUpdateToAllClients()
2389 { 2389 {
2390 List<ScenePresence> avatars = m_parentGroup.GetScenePresences(); 2390 List<ScenePresence> avatars = m_parentGroup.Scene.GetScenePresences();
2391 for (int i = 0; i < avatars.Count; i++) 2391 for (int i = 0; i < avatars.Count; i++)
2392 { 2392 {
2393 m_parentGroup.SendPartTerseUpdate(avatars[i].ControllingClient, this); 2393 m_parentGroup.SendPartTerseUpdate(avatars[i].ControllingClient, this);