From 6bb8fd3d6ed1141d3467df438f4a2938783a3bb0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Jun 2012 15:00:22 +0300 Subject: textxml: fix false positives with some image sizes. --- testxml/testxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testxml/testxml.py') diff --git a/testxml/testxml.py b/testxml/testxml.py index cd1f58c..2f8becc 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -494,7 +494,7 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, checkAction, iser tmp = int(width) else: tmp = s1 - if sizes[0] != s1 and tmp != sizesOGL[0]: + if sizes[0] != s1 and tmp != sizesOGL[0] and sizes[0] != sizesOGL[0]: showMsgSprite(fileLoc, "image width " + str(sizes[0]) + \ " (need " + str(tmp) + ") is not multiply to frame size " + width + ", image:" + image, False) @@ -516,7 +516,7 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, checkAction, iser else: tmp = s2; - if sizes[1] != s2 and tmp != sizesOGL[1]: + if sizes[1] != s2 and tmp != sizesOGL[1] and sizes[1] != sizesOGL[1]: showMsgSprite(fileLoc, "image height " + str(sizes[1]) + \ " (need " + str(tmp) + ") is not multiply to frame size " + height + ", image:" + image, False) -- cgit v1.2.3-70-g09d2