use uuid as image name
parent
380d71511c
commit
095797dc5c
|
@ -143,7 +143,7 @@ namespace OpenSim.Modules.PathFinding
|
|||
return false;
|
||||
}
|
||||
|
||||
private void createTestImage()
|
||||
private void createTestImage(String imageName)
|
||||
{
|
||||
Bitmap _map = new Bitmap((int)m_scene.RegionInfo.RegionSizeX, (int)m_scene.RegionInfo.RegionSizeY);
|
||||
|
||||
|
@ -166,16 +166,16 @@ namespace OpenSim.Modules.PathFinding
|
|||
}
|
||||
}
|
||||
|
||||
_map.Save("debug.png", ImageFormat.Png);
|
||||
_map.Save(imageName + ".png", ImageFormat.Png);
|
||||
}
|
||||
|
||||
[ScriptInvocation]
|
||||
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID)
|
||||
{
|
||||
String imageName = UUID.Random().ToString();
|
||||
(new Thread(delegate () { createTestImage(imageName); })).Start();
|
||||
|
||||
(new Thread(delegate () { createTestImage(); })).Start();
|
||||
|
||||
return "";
|
||||
return imageName;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Reference in New Issue