diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 7db6927..76ff6cf 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -274,6 +274,23 @@ namespace OpenSim.Region.Environment.Scenes | |||
274 | return false; | 274 | return false; |
275 | } | 275 | } |
276 | 276 | ||
277 | public bool TryGetAvatarsScene(LLUUID avatarId, out Scene scene) | ||
278 | { | ||
279 | ScenePresence avatar = null; | ||
280 | foreach (Scene mScene in m_localScenes) | ||
281 | { | ||
282 | if (mScene.TryGetAvatar(avatarId, out avatar)) | ||
283 | { | ||
284 | scene = mScene; | ||
285 | return true; | ||
286 | } | ||
287 | } | ||
288 | |||
289 | scene = null; | ||
290 | return false; | ||
291 | } | ||
292 | |||
293 | |||
277 | public void CloseScene(Scene scene) | 294 | public void CloseScene(Scene scene) |
278 | { | 295 | { |
279 | m_localScenes.Remove(scene); | 296 | m_localScenes.Remove(scene); |