mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Simplify main loop of lsloutput.py a bit
This commit is contained in:
parent
895e4f4668
commit
c724b53f20
1 changed files with 3 additions and 6 deletions
|
@ -308,11 +308,8 @@ class outscript(object):
|
|||
self.globalmode = False
|
||||
self.listmode = False
|
||||
for node in self.tree:
|
||||
if node['nt'] == 'DECL': # TODO: self.globalmode = node['nt'] == 'DECL'
|
||||
self.globalmode = True
|
||||
self.globalmode = node['nt'] == 'DECL'
|
||||
ret += self.OutCode(node)
|
||||
self.globalmode = False
|
||||
else:
|
||||
ret += self.OutCode(node)
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue