aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorMelanie Thielker2009-02-10 23:40:22 +0000
committerMelanie Thielker2009-02-10 23:40:22 +0000
commitc754160dee837d5e3200a943fe03487d451e65fd (patch)
tree634930338c21b01e79c3c5e0baab4ba6bf0ff742 /OpenSim/Region/Application
parentfix a typo where the High Southwest height was getting set to the Low (diff)
downloadopensim-SC_OLD-c754160dee837d5e3200a943fe03487d451e65fd.zip
opensim-SC_OLD-c754160dee837d5e3200a943fe03487d451e65fd.tar.gz
opensim-SC_OLD-c754160dee837d5e3200a943fe03487d451e65fd.tar.bz2
opensim-SC_OLD-c754160dee837d5e3200a943fe03487d451e65fd.tar.xz
If an instance contains only one region, select it in the console by default
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 898e298..0b8bd53 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -306,7 +306,10 @@ namespace OpenSim
306 PrintFileToConsole("startuplogo.txt"); 306 PrintFileToConsole("startuplogo.txt");
307 307
308 // For now, start at the 'root' level by default 308 // For now, start at the 'root' level by default
309 ChangeSelectedRegion("region", new string[] {"change", "region", "root"}); 309 if (m_sceneManager.Scenes.Count == 1) // If there is only one region, select it
310 ChangeSelectedRegion("region", new string[] {"change", "region", m_sceneManager.Scenes[0].RegionInfo.RegionName});
311 else
312 ChangeSelectedRegion("region", new string[] {"change", "region", "root"});
310 } 313 }
311 314
312 public override void ShutdownSpecific() 315 public override void ShutdownSpecific()