aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDan Lake2011-11-01 17:11:43 -0700
committerDan Lake2011-11-01 17:11:43 -0700
commit3bead3eb5070a94623ebb72037ad3b5feedaf659 (patch)
treeaf98c742ca5f67106a6f7f49541939cd14d4a0b9 /OpenSim
parentRemoved see_into_this_sim_from_neighbor configuration option. (diff)
downloadopensim-SC-3bead3eb5070a94623ebb72037ad3b5feedaf659.zip
opensim-SC-3bead3eb5070a94623ebb72037ad3b5feedaf659.tar.gz
opensim-SC-3bead3eb5070a94623ebb72037ad3b5feedaf659.tar.bz2
opensim-SC-3bead3eb5070a94623ebb72037ad3b5feedaf659.tar.xz
Part 2 of see_into_this_sim_from_neighbor configuration option removal
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneViewer.cs17
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneViewer.cs b/OpenSim/Region/Framework/Scenes/SceneViewer.cs
index ded90a3..d6bb81c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneViewer.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneViewer.cs
@@ -84,18 +84,15 @@ namespace OpenSim.Region.Framework.Scenes
84 { 84 {
85 if (m_pendingObjects == null) 85 if (m_pendingObjects == null)
86 { 86 {
87 if (!m_presence.IsChildAgent) 87 m_pendingObjects = new Queue<SceneObjectGroup>();
88 {
89 m_pendingObjects = new Queue<SceneObjectGroup>();
90 88
91 lock (m_pendingObjects) 89 lock (m_pendingObjects)
90 {
91 EntityBase[] entities = m_presence.Scene.Entities.GetEntities();
92 foreach (EntityBase e in entities)
92 { 93 {
93 EntityBase[] entities = m_presence.Scene.Entities.GetEntities(); 94 if (e != null && e is SceneObjectGroup)
94 foreach (EntityBase e in entities) 95 m_pendingObjects.Enqueue((SceneObjectGroup)e);
95 {
96 if (e != null && e is SceneObjectGroup)
97 m_pendingObjects.Enqueue((SceneObjectGroup)e);
98 }
99 } 96 }
100 } 97 }
101 } 98 }