#1133 Incorrect frame order for nested sprite

This commit is contained in:
honfika@gmail.com
2016-01-17 17:48:00 +01:00
parent d1cbe91e65
commit e6c41b3e12
2 changed files with 3 additions and 3 deletions

View File

@@ -2826,7 +2826,7 @@ public final class SWF implements SWFContainerItem, Timelined {
if (timeline.fontFrameNum != -1) {
dframe = timeline.fontFrameNum;
} else {
dframe = (time + layer.time) % drawableFrameCount;
dframe = time % drawableFrameCount;
}
if (character instanceof ButtonTag) {
@@ -2890,7 +2890,7 @@ public final class SWF implements SWFContainerItem, Timelined {
img = new SerializableImage(newWidth, newHeight, SerializableImage.TYPE_INT_ARGB);
img.fillTransparent();
drawable.toImage(dframe, layer.time + time, layer.ratio, renderContext, img, m, clrTrans);
drawable.toImage(dframe, time, layer.ratio, renderContext, img, m, clrTrans);
if (cacheKey != null) {
renderContext.shapeCache.put(cacheKey, img);