From 944997f33d5d743929fba700fe1d7515fcd960fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2011 04:35:55 +0300 Subject: testxml: small changes in detecting default action and animation. --- testxml/testxml.py | 7 +++++-- 1 file 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: -- cgit v1.2.3-70-g09d2