sprite frame count fix

This commit is contained in:
honfika@gmail.com
2015-01-31 17:47:15 +01:00
parent 1f09953178
commit f6b3d62088
2 changed files with 12 additions and 7 deletions

View File

@@ -300,7 +300,8 @@ public class DefineSpriteTag extends CharacterTag implements DrawableTag, Timeli
@Override
public int getNumFrames() {
return frameCount;
// flashplayer ignores the count stored in frameCount
return getTimeline().getFrames().size(); // frameCount
}
private int getRealFrameCount() {