oops BUG fix: do not modify shared list of scene presences

This commit is contained in:
UbitUmarov
2021-09-14 18:02:58 +01:00
parent 7ea0821704
commit b89f7eca35
2 changed files with 3 additions and 5 deletions

View File

@@ -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());

View File

@@ -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