make llAvatarOnLinkSitTarget(0) return UUID.Zero

LSLKeyTest
UbitUmarov 2015-11-20 01:44:19 +00:00
parent 4a0531244a
commit ca5ec4c33b
1 changed files with 6 additions and 3 deletions

View File

@ -7740,11 +7740,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
m_host.AddScriptLPS(1);
if(linknum == ScriptBaseClass.LINK_SET ||
linknum == ScriptBaseClass.LINK_ALL_CHILDREN ||
linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString();
linknum == ScriptBaseClass.LINK_ALL_CHILDREN ||
linknum == ScriptBaseClass.LINK_ALL_OTHERS ||
linknum == 0)
return UUID.Zero.ToString();
List<SceneObjectPart> parts = GetLinkParts(linknum);
if (parts.Count == 0) return UUID.Zero.ToString();
if (parts.Count == 0)
return UUID.Zero.ToString();
return parts[0].SitTargetAvatar.ToString();
}