diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-27 03:31:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-27 03:31:20 +0300 |
commit | 09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6 (patch) | |
tree | b245659ffb12b1279e6b037759a7a96429756e3e | |
parent | 5eea1d3f604def36f6c700ec519ab459b92cb4ce (diff) | |
download | evol-tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.gz evol-tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.bz2 evol-tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.xz evol-tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.zip |
testxml: add repeat attribute checking.
-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: |