From ea28e13e4a74541f6f734ece623383c701a6c678 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Wed, 18 Oct 2017 13:43:53 +0200 Subject: [PATCH] Implement llClearLinkMedia's known return values. --- lslopt/lslextrafuncs.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lslopt/lslextrafuncs.py b/lslopt/lslextrafuncs.py index bcbe3d6..1432f2e 100644 --- a/lslopt/lslextrafuncs.py +++ b/lslopt/lslextrafuncs.py @@ -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):