master
Christopher Latza 2020-06-10 20:56:28 +02:00
parent c171f0e739
commit 8d7a69b962
1 changed files with 21 additions and 13 deletions

View File

@ -223,9 +223,11 @@ namespace OpenSim.Modules.PathFinding
[ScriptInvocation]
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID)
{
SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
try
{
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID);
if(_host != null || m_asyncCommands != null)
if (_host != null || m_asyncCommands != null)
{
String imageName = UUID.Random().ToString();
@ -243,6 +245,12 @@ namespace OpenSim.Modules.PathFinding
if (m_asyncCommands == null)
m_log.ErrorFormat("[" + Name + "]: AsyncCommands is null");
}
}
catch(Exception _error)
{
m_log.Error(_error.Message);
m_log.Error(_error.StackTrace);
}
return UUID.Zero.ToString();