aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-08-05 18:16:09 +0000
committerJustin Clarke Casey2008-08-05 18:16:09 +0000
commit9e6fadddccce21cced0085e3bc264ac06cd3cd69 (patch)
tree18dfbbb0e8a19cd1d88f37dc8b2c10af7bcc4102
parent* Try and make the contents of the region prompt more obvious by returning to... (diff)
downloadopensim-SC_OLD-9e6fadddccce21cced0085e3bc264ac06cd3cd69.zip
opensim-SC_OLD-9e6fadddccce21cced0085e3bc264ac06cd3cd69.tar.gz
opensim-SC_OLD-9e6fadddccce21cced0085e3bc264ac06cd3cd69.tar.bz2
opensim-SC_OLD-9e6fadddccce21cced0085e3bc264ac06cd3cd69.tar.xz
* Add / as a shortcut to select the root region
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs6
1 files changed, 3 insertions, 3 deletions
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
298 298
299 public bool TrySetCurrentScene(string regionName) 299 public bool TrySetCurrentScene(string regionName)
300 { 300 {
301 if ((String.Compare(regionName, "root") == 0) || (String.Compare(regionName, "..") == 0)) 301 if ((String.Compare(regionName, "root") == 0)
302 || (String.Compare(regionName, "..") == 0)
303 || (String.Compare(regionName, "/") == 0))
302 { 304 {
303 m_currentScene = null; 305 m_currentScene = null;
304 return true; 306 return true;
305 } 307 }
306 else 308 else
307 { 309 {
308 // Console.WriteLine("Searching for Region: '" + regionName + "'");
309
310 foreach (Scene scene in m_localScenes) 310 foreach (Scene scene in m_localScenes)
311 { 311 {
312 if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0) 312 if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0)