use uuid as image name

master
Christopher Latza 2020-06-10 18:25:56 +02:00
parent 380d71511c
commit 095797dc5c
1 changed files with 5 additions and 5 deletions

View File

@ -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