mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
builtins.txt was not named as the source of some errors. Fixed.
This commit is contained in:
parent
609df368f3
commit
124a2823a0
1 changed files with 2 additions and 2 deletions
|
@ -1870,7 +1870,7 @@ class parser(object):
|
||||||
#if typ == 'key':
|
#if typ == 'key':
|
||||||
# val = Key(val)
|
# val = Key(val)
|
||||||
elif typ == 'key':
|
elif typ == 'key':
|
||||||
warning(u'Key constants not supported: ' + line.decode('utf8'))
|
warning(u'Key constants not supported in builtins.txt: ' + line.decode('utf8'))
|
||||||
val = None
|
val = None
|
||||||
elif typ in ('vector', 'rotation'):
|
elif typ in ('vector', 'rotation'):
|
||||||
if val[0:1] != '<' or val[-1:] != '>':
|
if val[0:1] != '<' or val[-1:] != '>':
|
||||||
|
@ -1900,7 +1900,7 @@ class parser(object):
|
||||||
val = Vector(val)
|
val = Vector(val)
|
||||||
else:
|
else:
|
||||||
assert typ == 'list'
|
assert typ == 'list'
|
||||||
warning(u'List constants not supported: ' + line.decode('utf8'))
|
warning(u'List constants not supported in builtins.txt: ' + line.decode('utf8'))
|
||||||
val = None
|
val = None
|
||||||
if val is not None:
|
if val is not None:
|
||||||
self.constants[name] = val
|
self.constants[name] = val
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue