mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
oops BUG fix: do not modify shared list of scene presences
This commit is contained in:
@@ -5270,12 +5270,13 @@ Label_GroupsDone:
|
||||
/// <remarks>
|
||||
/// This method will return both root and child scene presences.
|
||||
///
|
||||
/// Consider using ForEachScenePresence() or ForEachRootScenePresence() if possible since these will not
|
||||
/// Consider using only on ForEachScenePresence() or ForEachRootScenePresence() if possible since these will not
|
||||
/// involving creating a new List object.
|
||||
/// </remarks>
|
||||
/// <returns>
|
||||
/// A list of the scene presences. Adding or removing from the list will not affect the presences in the scene.
|
||||
/// The shared list of the scene presences.
|
||||
/// </returns>
|
||||
/// WARNING DO NOT MODIFY RETURNED VALUE
|
||||
public List<ScenePresence> GetScenePresences()
|
||||
{
|
||||
//return new List<ScenePresence>(m_sceneGraph.GetScenePresences());
|
||||
|
||||
@@ -6883,8 +6883,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
} // where public end
|
||||
|
||||
allpresences.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6937,7 +6935,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
}
|
||||
allpresences.Clear();
|
||||
} // now on a private parcel end
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user