Fix type conversion on calling LSL functions.

We had a big chaos with type conversion. That caused a bug where passing a key to a function that required a string, or vice versa, crashed the script.

Diminish the chaos by modifying the parameters just prior to invocation (in lslfoldconst). We also remove the, now unnecessary, calls to force floats, either alone or within vectors or quaternions.
This commit is contained in:
Sei Lisa 2016-12-21 06:01:03 +01:00
parent 27eeec06cf
commit 6879037735
4 changed files with 80 additions and 47 deletions

View file

@ -150,7 +150,7 @@ def llEdgeOfWorld(v1, v2):
if not lslcommon.IsCalc:
def llFrand(f):
assert isfloat(f)
if f == 0.:
if f == 0:
return 0.
raise ELSLCantCompute