a few changes on teleport lookat

This commit is contained in:
UbitUmarov
2021-09-15 23:01:01 +01:00
parent a3ab4db5fc
commit 55fb69f8e0
3 changed files with 24 additions and 4 deletions

View File

@@ -64,6 +64,9 @@ namespace OpenSim.Region.Framework.Scenes.Scripting
/// <returns></returns>
public static UUID GetAssetIdFromKeyOrItemName(SceneObjectPart part, string identifier)
{
if(string.IsNullOrEmpty(identifier))
return UUID.Zero;
// if we can parse the string as a key, use it.
// else try to locate the name in inventory of object. found returns key,
// not found returns UUID.Zero