* the export-map now takes 'CurrentOrFirst' Scene, not necessarily the CurrentScene (as that is not set initially, and hence the command was a bit unintuitive)

afrisby
lbsa71 2007-11-23 19:00:25 +00:00
parent fb2588b409
commit 7ef1f887ea
1 changed files with 4 additions and 5 deletions

View File

@ -706,17 +706,16 @@ namespace OpenSim
break; break;
case "export-map": case "export-map":
if (m_sceneManager.CurrentScene != null)
{
if (cmdparams.Length > 0) if (cmdparams.Length > 0)
{ {
m_sceneManager.CurrentScene.ExportWorldMap(cmdparams[0]); m_sceneManager.CurrentOrFirstScene.ExportWorldMap(cmdparams[0]);
} }
else else
{ {
m_sceneManager.CurrentScene.ExportWorldMap("exportmap.jpg"); m_sceneManager.CurrentOrFirstScene.ExportWorldMap("exportmap.jpg");
} }
}
break; break;
default: default: