mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Forgot to exclude globals from this optimization somehow.
This commit is contained in:
parent
7c35cf64df
commit
c1d837674c
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ class foldconst(object):
|
|||
parent[index] = {'nt':'CONST', 'SEF':True, 't':node['t'],
|
||||
'value':value}
|
||||
return
|
||||
if nt == 'LIST' and len(child) == 1:
|
||||
if nt == 'LIST' and len(child) == 1 and not self.globalmode:
|
||||
node = parent[index] = self.Cast(child[0], 'list')
|
||||
if issef:
|
||||
node['SEF'] = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue