* Terrain load variables now work. HiRAW exporter works wonderfully. :D
parent
ed0704d527
commit
cd2a411afe
|
@ -365,23 +365,26 @@ namespace OpenSim.Region.Terrain
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "load":
|
case "load":
|
||||||
args[2].Replace("%name%", simName);
|
string filenameL = args[2].Replace("%name%", simName);
|
||||||
|
filenameL = filenameL.Replace("%x%", this.offsetX.ToString());
|
||||||
|
filenameL = filenameL.Replace("%y%", this.offsetY.ToString());
|
||||||
|
|
||||||
switch (args[1].ToLower())
|
switch (args[1].ToLower())
|
||||||
{
|
{
|
||||||
case "f32":
|
case "f32":
|
||||||
LoadFromFileF32(args[2]);
|
LoadFromFileF32(filenameL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "f64":
|
case "f64":
|
||||||
LoadFromFileF64(args[2]);
|
LoadFromFileF64(filenameL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "raw":
|
case "raw":
|
||||||
LoadFromFileSLRAW(args[2]);
|
LoadFromFileSLRAW(filenameL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "img":
|
case "img":
|
||||||
heightmap.LoadImage(args[2]);
|
heightmap.LoadImage(filenameL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue