mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix llGetColor return value for invalid face.
It returns <1,1,1>, not ZERO_VECTOR.
This commit is contained in:
parent
f657d3e875
commit
d8cf384ccc
1 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
# Extra functions that have predictable return values for certain arguments.
|
||||
|
||||
from lslcommon import Key #, Vector, Quaternion
|
||||
from lslcommon import Key, Vector #, Quaternion
|
||||
from lslbasefuncs import ELSLCantCompute, isinteger, iskey, islist, \
|
||||
isvector, isstring, NULL_KEY, ZERO_VECTOR, ZERO_ROTATION, cond
|
||||
#isfloat, isrotation
|
||||
|
@ -200,7 +200,8 @@ def llGetBoundingBox(id):
|
|||
def llGetColor(face):
|
||||
assert isinteger(face)
|
||||
if face > 8:
|
||||
return ZERO_VECTOR
|
||||
return Vector((1.,1.,1.))
|
||||
# Returns face 0 when negative (can't be computed)
|
||||
raise ELSLCantCompute
|
||||
|
||||
def llGetDisplayName(id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue