* 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
parent
fcf7db7272
commit
d2e48c8014
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -426,7 +426,10 @@ namespace OpenSim.Region.Terrain
|
|||
break;
|
||||
|
||||
case "grdmap":
|
||||
if (args.Length >= 4)
|
||||
ExportImage(filename, args[3]);
|
||||
else
|
||||
ExportImage(filename, "defaultstripe.png");
|
||||
break;
|
||||
|
||||
case "png":
|
||||
|
|
Loading…
Reference in New Issue