mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* 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)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user