mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Fix evaluation order for vectors, rotations and lists.
Vectors, rotations and lists are evaluated left-to-right.
This commit is contained in:
parent
13c7b0ef17
commit
2cca835ae9
1 changed files with 1 additions and 1 deletions
|
@ -1049,7 +1049,7 @@ class foldconst(object):
|
|||
if nt in ('VECTOR', 'ROTATION', 'LIST'):
|
||||
isconst = True
|
||||
issef = True
|
||||
for idx in xrange(len(child)-1, -1, -1):
|
||||
for idx in xrange(len(child)):
|
||||
self.FoldTree(child, idx)
|
||||
if child[idx]['nt'] != 'CONST':
|
||||
isconst = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue