summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-25 04:35:55 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-25 04:35:55 +0300
commit944997f33d5d743929fba700fe1d7515fcd960fa (patch)
tree5a657f256afadab339e353649c7e0b3a91c1f4b0 /testxml
parentcbd39dcf3aa78deee708bb15b30e90af6fe09211 (diff)
downloadevol-tools-944997f33d5d743929fba700fe1d7515fcd960fa.tar.gz
evol-tools-944997f33d5d743929fba700fe1d7515fcd960fa.tar.bz2
evol-tools-944997f33d5d743929fba700fe1d7515fcd960fa.tar.xz
evol-tools-944997f33d5d743929fba700fe1d7515fcd960fa.zip
testxml: small changes in detecting default action and animation.
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 7cec764..38326e8 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -510,7 +510,10 @@ def testSpriteAction(file, name, action, numframes, iserr):
animations = None
if animations == None or len(animations) == 0:
- showMsgSprite(file, "no animation tags in action: " + name, False)
+ if name != "default":
+ showMsgSprite(file, "no animation tags in action: " + name, False)
+ else:
+ return framesid
aniset = set()
for animation in animations:
@@ -644,7 +647,7 @@ def testSpriteAction(file, name, action, numframes, iserr):
if label == "" or label is None:
showMsgSprite(file, "no label attribute in goto tag " + name, iserr)
- if cnt == 0 and name != "default":
+ if cnt == 0:
showMsgSprite(file, "no frames or sequences in action: " + name, iserr)
if "default" not in aniset: