mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix bug where floats in global lists would be output as integers.
This commit is contained in:
parent
a6b3a0946f
commit
443b5a2258
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ class outscript(object):
|
|||
return str(value)
|
||||
if tvalue == float:
|
||||
if self.optsigns and value.is_integer() and -2147483648.0 <= value < 2147483648.0:
|
||||
if self.globalmode:# or value >= 0:
|
||||
if self.globalmode and not self.listmode:# or value >= 0:
|
||||
return str(int(value))
|
||||
else:
|
||||
elif not self.globalmode:
|
||||
# Important inside lists!!
|
||||
return '((float)' + str(int(value)) + ')'
|
||||
s = str(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue