diff options
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-x | testxml/testxml.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index 75aec68..e1ae4de 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -574,6 +574,10 @@ def testSpriteAction(file, name, action, numframes, iserr): except: showMsgSprite(file, "no sequence start or end index action: " + \ name + ", direction: " + direction, iserr) + try: + repeat = int(sequence.attributes["repeat"].value) + except: + repeat = 1 if i1 >= numframes or i1 < 0: showMsgSprite(file, "incorrect start sequence index " + str(i1) + \ @@ -587,8 +591,8 @@ def testSpriteAction(file, name, action, numframes, iserr): name + ", direction: " + direction, False) if lastIndex1 == i1 and lastIndex2 == i2 and offsetX == lastOffsetX \ - and offsetY == lastOffsetY and i1 == i2 and lastIndex1 == lastIndex2: - showMsgSprite(file, "duplicate sequence animation for start=" \ + and offsetY == lastOffsetY: + showMsgSprite(file, "duplicate sequence animation for. May be need use repeat attribue? start=" \ + str(i1) + ", end=" + str(i2) + " action: " + \ name + ", direction: " + direction, False) else: |