From 7ef1f887eadc815fbfe00958d40f130691eb9465 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 23 Nov 2007 19:00:25 +0000 Subject: [PATCH] * 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) --- OpenSim/Region/Application/OpenSimMain.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 11345c3d04..cae0b4128c 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -706,17 +706,16 @@ namespace OpenSim break; case "export-map": - if (m_sceneManager.CurrentScene != null) - { + if (cmdparams.Length > 0) { - m_sceneManager.CurrentScene.ExportWorldMap(cmdparams[0]); + m_sceneManager.CurrentOrFirstScene.ExportWorldMap(cmdparams[0]); } else { - m_sceneManager.CurrentScene.ExportWorldMap("exportmap.jpg"); + m_sceneManager.CurrentOrFirstScene.ExportWorldMap("exportmap.jpg"); } - } + break; default: