aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorlbsa712007-11-23 19:00:25 +0000
committerlbsa712007-11-23 19:00:25 +0000
commit7ef1f887eadc815fbfe00958d40f130691eb9465 (patch)
treec5c34650631f45978ba2f4513c07977f56b6875f /OpenSim
parent* Refactored NumPackets calculation (diff)
downloadopensim-SC-7ef1f887eadc815fbfe00958d40f130691eb9465.zip
opensim-SC-7ef1f887eadc815fbfe00958d40f130691eb9465.tar.gz
opensim-SC-7ef1f887eadc815fbfe00958d40f130691eb9465.tar.bz2
opensim-SC-7ef1f887eadc815fbfe00958d40f130691eb9465.tar.xz
* 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)
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 11345c3..cae0b41 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -706,17 +706,16 @@ namespace OpenSim
706 break; 706 break;
707 707
708 case "export-map": 708 case "export-map":
709 if (m_sceneManager.CurrentScene != null) 709
710 {
711 if (cmdparams.Length > 0) 710 if (cmdparams.Length > 0)
712 { 711 {
713 m_sceneManager.CurrentScene.ExportWorldMap(cmdparams[0]); 712 m_sceneManager.CurrentOrFirstScene.ExportWorldMap(cmdparams[0]);
714 } 713 }
715 else 714 else
716 { 715 {
717 m_sceneManager.CurrentScene.ExportWorldMap("exportmap.jpg"); 716 m_sceneManager.CurrentOrFirstScene.ExportWorldMap("exportmap.jpg");
718 } 717 }
719 } 718
720 break; 719 break;
721 720
722 default: 721 default: