forked from SilverStudioGames/WTS
Bug fix
* Fixed Expression Editor crash on a statement with no arguments
This commit is contained in:
parent
bb594c74c6
commit
1554cdd5d5
@ -305,12 +305,6 @@ init python:
|
||||
else:
|
||||
keywords = ["expression", "face", "xpos", "ypos", "pos", "flip", "trans", "animation", "wand"]
|
||||
|
||||
# Args is an ArgumentInfo object, or None,
|
||||
# the true list of arguments is kept
|
||||
# within the object itself.
|
||||
if args:
|
||||
args = args.arguments
|
||||
|
||||
# Arguments are contained within a list,
|
||||
# they consist of opaque tuples,
|
||||
# each one containing a keyword, and a value.
|
||||
@ -319,6 +313,14 @@ init python:
|
||||
d = _dict()
|
||||
d[who] = _dict()
|
||||
|
||||
# Args is an ArgumentInfo object, or None,
|
||||
# the true list of arguments is kept
|
||||
# within the object itself.
|
||||
if not args:
|
||||
return d
|
||||
|
||||
args = args.arguments
|
||||
|
||||
# Resolve arguments for character statements.
|
||||
# (There should be a simpler way to do this, right?)
|
||||
for i, (key, val) in enumerate(args):
|
||||
|
Loading…
Reference in New Issue
Block a user