Fix evaluation order for vectors, rotations and lists.

Vectors, rotations and lists are evaluated left-to-right.
This commit is contained in:
Sei Lisa 2017-01-23 01:18:50 +01:00
parent 13c7b0ef17
commit 2cca835ae9

View file

@ -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