diff options
author | Charles Krinke | 2008-09-03 03:32:29 +0000 |
---|---|---|
committer | Charles Krinke | 2008-09-03 03:32:29 +0000 |
commit | 98da84c851503c498e788f9c057ad19efaa33ebc (patch) | |
tree | c8952fdcfbd8f0437806e35ddb3601e40acdba86 /OpenSim/Region/Environment | |
parent | Mantis #2099 (diff) | |
download | opensim-SC-98da84c851503c498e788f9c057ad19efaa33ebc.zip opensim-SC-98da84c851503c498e788f9c057ad19efaa33ebc.tar.gz opensim-SC-98da84c851503c498e788f9c057ad19efaa33ebc.tar.bz2 opensim-SC-98da84c851503c498e788f9c057ad19efaa33ebc.tar.xz |
Mantis#2105. Thank you kindly, HomerHorwitz for a patch that addresses:
Due to the many problems with not cleaned up child-agents, I thought it
might make sense to be able to see them on the console. 'show users' on
the region-server's console now outputs root- and child-agents (with
"root" or "child" column)
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 046dab3..5546618 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -435,6 +435,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
435 | return avatars; | 435 | return avatars; |
436 | } | 436 | } |
437 | 437 | ||
438 | public List<ScenePresence> GetCurrentScenePresences() | ||
439 | { | ||
440 | List<ScenePresence> presences = new List<ScenePresence>(); | ||
441 | |||
442 | ForEachCurrentScene(delegate(Scene scene) | ||
443 | { | ||
444 | List<ScenePresence> scenePresences = scene.GetScenePresences(); | ||
445 | presences.AddRange(scenePresences); | ||
446 | }); | ||
447 | |||
448 | return presences; | ||
449 | } | ||
450 | |||
438 | public RegionInfo GetRegionInfo(ulong regionHandle) | 451 | public RegionInfo GetRegionInfo(ulong regionHandle) |
439 | { | 452 | { |
440 | foreach (Scene scene in m_localScenes) | 453 | foreach (Scene scene in m_localScenes) |