diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-19 02:05:18 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-19 02:05:18 +0200 |
commit | 88ee2065234648712636c85470869a641eaef74c (patch) | |
tree | 744b4c54b9bb8817dd4f6cb59251f40e23ff6e24 | |
parent | ed05bebb574db6cff36a2a8bcd35c124258fa014 (diff) | |
download | tools-88ee2065234648712636c85470869a641eaef74c.tar.gz tools-88ee2065234648712636c85470869a641eaef74c.tar.bz2 tools-88ee2065234648712636c85470869a641eaef74c.tar.xz tools-88ee2065234648712636c85470869a641eaef74c.zip |
In testxml add option to allow looping death animation.
-rwxr-xr-x | testxml/testxml.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index 1296216..e33d878 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -468,11 +468,16 @@ def testSpriteAction(file, name, action, numframes, iserr): nc = nc + 2 if nc > 1: try: - delay = int(lastNode.attributes["delay"].value) + cont = int(lastNode.attributes["continue"].value) except: - delay = 0 - if delay > 0 and delay < 5000: - showMsgSprite(file, "last frame\sequence in dead animation have to low limit. Need zero or >5000: " + name, iserr) + cont = 0; + if cont == 0: + try: + delay = int(lastNode.attributes["delay"].value) + except: + delay = 0 + if delay > 0 and delay < 5000: + showMsgSprite(file, "last frame\sequence in dead animation have to low limit. Need zero or >5000: " + name, False) |