* Add / as a shortcut to select the root region
parent
de0a6e7f2b
commit
9e6fadddcc
|
@ -298,15 +298,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public bool TrySetCurrentScene(string regionName)
|
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;
|
m_currentScene = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Console.WriteLine("Searching for Region: '" + regionName + "'");
|
|
||||||
|
|
||||||
foreach (Scene scene in m_localScenes)
|
foreach (Scene scene in m_localScenes)
|
||||||
{
|
{
|
||||||
if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0)
|
if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0)
|
||||||
|
|
Loading…
Reference in New Issue