If an instance contains only one region, select it in the console by default

0.6.3-post-fixes
Melanie Thielker 2009-02-10 23:40:22 +00:00
parent 83347360c3
commit c754160dee
1 changed files with 4 additions and 1 deletions

View File

@ -306,6 +306,9 @@ namespace OpenSim
PrintFileToConsole("startuplogo.txt");
// For now, start at the 'root' level by default
if (m_sceneManager.Scenes.Count == 1) // If there is only one region, select it
ChangeSelectedRegion("region", new string[] {"change", "region", m_sceneManager.Scenes[0].RegionInfo.RegionName});
else
ChangeSelectedRegion("region", new string[] {"change", "region", "root"});
}