mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Implement llClearLinkMedia's known return values.
This commit is contained in:
parent
e051d49338
commit
ea28e13e4a
1 changed files with 7 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue