Implement llClearLinkMedia's known return values.

This commit is contained in:
Sei Lisa 2017-10-18 13:43:53 +02:00
parent e051d49338
commit ea28e13e4a

View file

@ -61,6 +61,13 @@ def llAvatarOnLinkSitTarget(link):
return Key(NULL_KEY)
raise ELSLCantCompute
# llClearPrimMedia always has side effects (emits errors for every face that
# is not supported)
def llClearLinkMedia(link, face):
if link > 255 or link == -2147483648:
return 0
raise ELSLCantCompute
def llDetectedGrab(idx, event=None):
idx = fi(idx)
if 0 <= idx <= 15 and (event == 'touch' or event is None):