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,7 +306,10 @@ namespace OpenSim
PrintFileToConsole("startuplogo.txt"); PrintFileToConsole("startuplogo.txt");
// For now, start at the 'root' level by default // For now, start at the 'root' level by default
ChangeSelectedRegion("region", new string[] {"change", "region", "root"}); 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"});
} }
public override void ShutdownSpecific() public override void ShutdownSpecific()