mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Comment changes - just make the idea more explicit.
This commit is contained in:
parent
3b4bf13a10
commit
5d4abf967d
1 changed files with 3 additions and 2 deletions
|
@ -342,11 +342,12 @@ class optimizer(object):
|
||||||
if code0 == 'DECL':
|
if code0 == 'DECL':
|
||||||
# The expression code is elsewhere.
|
# The expression code is elsewhere.
|
||||||
expr = self.symtab[code[3]][code[2]][2]
|
expr = self.symtab[code[3]][code[2]][2]
|
||||||
|
# Irrelevant if list or string or key.
|
||||||
if expr is not None:
|
if expr is not None:
|
||||||
self.FoldTree(expr)
|
self.FoldTree(expr)
|
||||||
# TODO: Remove assignment if default
|
# TODO: Remove assignment if integer zero.
|
||||||
else:
|
else:
|
||||||
# TODO: Add assignment if ZERO_VECTOR, ZERO_ROTATION or FLOAT.
|
# TODO: Add assignment if vector, rotation or float.
|
||||||
pass
|
pass
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue