return image name

master
Christopher Latza 2020-06-10 21:01:17 +02:00
parent 8d7a69b962
commit 09bd26c00e
1 changed files with 3 additions and 5 deletions

View File

@ -223,19 +223,17 @@ namespace OpenSim.Modules.PathFinding
[ScriptInvocation] [ScriptInvocation]
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID) public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID)
{ {
String imageName = UUID.Random().ToString();
try try
{ {
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID); SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID);
if (_host != null || m_asyncCommands != null) if (_host != null || m_asyncCommands != null)
{ {
String imageName = UUID.Random().ToString();
UUID tid = m_asyncCommands.DataserverPlugin.RegisterRequest(_host.LocalId, _host.GroupID, imageName); UUID tid = m_asyncCommands.DataserverPlugin.RegisterRequest(_host.LocalId, _host.GroupID, imageName);
(new Thread(delegate () { createPathFindingScene(imageName); })).Start(); (new Thread(delegate () { createPathFindingScene(imageName); })).Start();
return imageName;
} }
else else
{ {
@ -252,7 +250,7 @@ namespace OpenSim.Modules.PathFinding
m_log.Error(_error.StackTrace); m_log.Error(_error.StackTrace);
} }
return UUID.Zero.ToString(); return imageName;
} }
#endregion #endregion