From 08424221d6d7ab15ef1d69f34da094d132c5d7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 21 Feb 2021 19:39:18 +0100 Subject: [PATCH] set framecount on swf on tag add --- libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java index bad86334f..f9380afce 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java @@ -3137,6 +3137,9 @@ public final class SWF implements SWFContainerItem, Timelined { DefineSpriteTag sprite = (DefineSpriteTag) timelined; sprite.frameCount = timelined.getTimeline().getFrameCount(); } + if (timelined == this) { + frameCount = getTimeline().getFrameCount(); + } } public Timelined getTimelined(TreeItem treeItem) {