* refactor: Move export map function to world map module from scene

This commit is contained in:
Justin Clarke Casey
2009-02-13 16:43:20 +00:00
parent 6600a7a9bc
commit 88b273bc71
6 changed files with 94 additions and 76 deletions

View File

@@ -225,10 +225,6 @@ namespace OpenSim
"command-script <script>",
"Run a command script from file", RunCommand);
m_console.Commands.AddCommand("region", false, "export-map",
"export-map <file>",
"Save an image of the world map", RunCommand);
m_console.Commands.AddCommand("region", false, "remove-region",
"remove-region <name>",
"Remove a region from this simulator", RunCommand);
@@ -609,17 +605,6 @@ namespace OpenSim
m_sceneManager.RestartCurrentScene();
break;
case "export-map":
if (cmdparams.Length > 0)
{
m_sceneManager.CurrentOrFirstScene.ExportWorldMap(cmdparams[0]);
}
else
{
m_sceneManager.CurrentOrFirstScene.ExportWorldMap("exportmap.jpg");
}
break;
case "Add-InventoryHost":
if (cmdparams.Length > 0)
{