* Added new terrain-sim <simname> <terrain commands...> function to run terrain commands on a specific sim.

* Made arguments for terrain save grdmap optional. Uses defaultstripe if no argument specified.
afrisby
Adam Frisby 2007-08-17 22:44:34 +00:00
parent fcf7db7272
commit d2e48c8014
2 changed files with 20 additions and 1 deletions

View File

@ -350,6 +350,22 @@ namespace OpenSim
}
}
break;
case "terrain-sim":
string result2 = "";
foreach (Scene scene in m_localScenes)
{
if (scene.RegionInfo.RegionName.ToLower() == cmdparams[0].ToLower())
{
string[] tmpCmdparams = new string[cmdparams.Length - 1];
cmdparams.CopyTo(tmpCmdparams,1);
if (!scene.Terrain.RunTerrainCmd(tmpCmdparams, ref result2, scene.RegionInfo.RegionName))
{
m_log.Error(result2);
}
}
}
break;
case "script":
foreach (Scene scene in m_localScenes)
{

View File

@ -426,7 +426,10 @@ namespace OpenSim.Region.Terrain
break;
case "grdmap":
ExportImage(filename, args[3]);
if (args.Length >= 4)
ExportImage(filename, args[3]);
else
ExportImage(filename, "defaultstripe.png");
break;
case "png":