From be850e69ccf97ff4982d2a9cbd49d8bad4f60731 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sun, 3 Nov 2019 01:08:53 +0100 Subject: [PATCH] Move comment --- lslopt/lslfuncopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslfuncopt.py b/lslopt/lslfuncopt.py index 65d0dfb..4cc1f4c 100644 --- a/lslopt/lslfuncopt.py +++ b/lslopt/lslfuncopt.py @@ -23,6 +23,7 @@ from lslopt.lslcommon import Key, Vector, Quaternion, nr from lslopt import lslfuncs SensorFunctions = {'llSensor', 'llSensorRepeat'} +# not sure about llRemoteDataReply but let's fall on the safe side NoKeyOptimizationFunctions = {'llMessageLinked', 'llRemoteDataReply'} def OptimizeArgs(node, sym): @@ -43,7 +44,6 @@ def OptimizeArgs(node, sym): params[4].value = 4.0 types = sym['ParamTypes'] - # not too sure about llRemoteDataReply but let's fall on the safe side if name not in NoKeyOptimizationFunctions: # Transform invalid/null keys to "" with the exceptions above, # e.g. llGetOwnerKey(NULL_KEY) -> llGetOwnerKey("")