From 095797dc5c402ac07256b2dafe87f5883067f423 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Wed, 10 Jun 2020 18:25:56 +0200 Subject: [PATCH] use uuid as image name --- src/BasicPathFinding.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BasicPathFinding.cs b/src/BasicPathFinding.cs index ca2e012..ae4c996 100644 --- a/src/BasicPathFinding.cs +++ b/src/BasicPathFinding.cs @@ -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