mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Move comment
This commit is contained in:
parent
a8d8c14c79
commit
be850e69cc
1 changed files with 1 additions and 1 deletions
|
@ -23,6 +23,7 @@ from lslopt.lslcommon import Key, Vector, Quaternion, nr
|
||||||
from lslopt import lslfuncs
|
from lslopt import lslfuncs
|
||||||
|
|
||||||
SensorFunctions = {'llSensor', 'llSensorRepeat'}
|
SensorFunctions = {'llSensor', 'llSensorRepeat'}
|
||||||
|
# not sure about llRemoteDataReply but let's fall on the safe side
|
||||||
NoKeyOptimizationFunctions = {'llMessageLinked', 'llRemoteDataReply'}
|
NoKeyOptimizationFunctions = {'llMessageLinked', 'llRemoteDataReply'}
|
||||||
|
|
||||||
def OptimizeArgs(node, sym):
|
def OptimizeArgs(node, sym):
|
||||||
|
@ -43,7 +44,6 @@ def OptimizeArgs(node, sym):
|
||||||
params[4].value = 4.0
|
params[4].value = 4.0
|
||||||
|
|
||||||
types = sym['ParamTypes']
|
types = sym['ParamTypes']
|
||||||
# not too sure about llRemoteDataReply but let's fall on the safe side
|
|
||||||
if name not in NoKeyOptimizationFunctions:
|
if name not in NoKeyOptimizationFunctions:
|
||||||
# Transform invalid/null keys to "" with the exceptions above,
|
# Transform invalid/null keys to "" with the exceptions above,
|
||||||
# e.g. llGetOwnerKey(NULL_KEY) -> llGetOwnerKey("")
|
# e.g. llGetOwnerKey(NULL_KEY) -> llGetOwnerKey("")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue