From 9e6fadddccce21cced0085e3bc264ac06cd3cd69 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 5 Aug 2008 18:16:09 +0000 Subject: * Add / as a shortcut to select the root region --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index f5d2e00..046dab3 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -298,15 +298,15 @@ namespace OpenSim.Region.Environment.Scenes public bool TrySetCurrentScene(string regionName) { - if ((String.Compare(regionName, "root") == 0) || (String.Compare(regionName, "..") == 0)) + if ((String.Compare(regionName, "root") == 0) + || (String.Compare(regionName, "..") == 0) + || (String.Compare(regionName, "/") == 0)) { m_currentScene = null; return true; } else { - // Console.WriteLine("Searching for Region: '" + regionName + "'"); - foreach (Scene scene in m_localScenes) { if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0) -- cgit v1.1