mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Minor shortening of name to fit in line
This commit is contained in:
parent
762bf1f27b
commit
831296eddc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue