mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Change how LSLCalc is handled.
Instead of using an option in the command line, use a global in lslcommon, settable by the main program (only the main LSLCalc program, which differs from LSL-PyOptimizer's main, changes it).
This commit is contained in:
parent
1b6777e47b
commit
7c2c09188d
3 changed files with 9 additions and 7 deletions
|
@ -18,7 +18,7 @@
|
|||
# Convert an abstract syntax tree + symbol table back to a script as text.
|
||||
|
||||
import lslfuncs
|
||||
from lslcommon import Key, Vector, Quaternion
|
||||
from lslcommon import *
|
||||
from lslparse import warning
|
||||
import math
|
||||
|
||||
|
@ -426,7 +426,7 @@ class outscript(object):
|
|||
|
||||
if nt == 'EXPR':
|
||||
return self.dent() + self.OutExpr(child[0]) + (
|
||||
';\n' if not self.lslcalc else '')
|
||||
';\n' if not IsCalc else '')
|
||||
|
||||
if nt == 'LAMBDA':
|
||||
return ''
|
||||
|
@ -444,7 +444,6 @@ class outscript(object):
|
|||
self.optsigns = self.optimize and 'optsigns' in options
|
||||
self.optfloats = self.optimize and 'optfloats' in options
|
||||
self.foldconst = self.optimize and 'constfold' in options
|
||||
self.lslcalc = 'lslcalc' in options
|
||||
|
||||
self.warntabs = 'warntabs' in options
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue