From 88ee2065234648712636c85470869a641eaef74c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Jan 2011 02:05:18 +0200 Subject: In testxml add option to allow looping death animation. --- testxml/testxml.py | 13 +++++++++---- 1 file 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) -- cgit v1.2.3-70-g09d2