Minor shortening of name to fit in line

This commit is contained in:
Sei Lisa 2015-02-28 21:46:19 +01:00
parent 762bf1f27b
commit 831296eddc

View file

@ -329,10 +329,10 @@ class foldconst(object):
if optype in ('vector', 'rotation'):
# not much to do with vectors or quaternions either
if lnt == 'CONST' and all(component == 0 for component in lval['value']):
if lnt == 'CONST' and all(x == 0 for x in lval['value']):
# Change <0,0,0[,0]>+expr -> expr
parent[index] = rval
elif rnt == 'CONST' and all(component == 0 for component in rval['value']):
elif rnt == 'CONST' and all(x == 0 for x in rval['value']):
# Change expr+<0,0,0[,0]> -> expr
parent[index] = lval
return