Merge branch 'master' into bigmerge

avinationmerge
Melanie 2011-11-02 00:07:59 +00:00
commit 9a8715ec9a
1 changed files with 7 additions and 10 deletions

View File

@ -84,18 +84,15 @@ namespace OpenSim.Region.Framework.Scenes
{ {
if (m_pendingObjects == null) if (m_pendingObjects == null)
{ {
if (!m_presence.IsChildAgent) m_pendingObjects = new Queue<SceneObjectGroup>();
{
m_pendingObjects = new Queue<SceneObjectGroup>();
lock (m_pendingObjects) lock (m_pendingObjects)
{
EntityBase[] entities = m_presence.Scene.Entities.GetEntities();
foreach (EntityBase e in entities)
{ {
EntityBase[] entities = m_presence.Scene.Entities.GetEntities(); if (e != null && e is SceneObjectGroup)
foreach (EntityBase e in entities) m_pendingObjects.Enqueue((SceneObjectGroup)e);
{
if (e != null && e is SceneObjectGroup)
m_pendingObjects.Enqueue((SceneObjectGroup)e);
}
} }
} }
} }