From a6e658f046778a0d6de7afe5f524c280df2fc3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 10 Dec 2022 16:50:42 +0100 Subject: [PATCH] Reset timeline on sprites on importassets load --- libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 12d1c3c20..797673d14 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java @@ -1680,9 +1680,14 @@ public final class SWF implements SWFContainerItem, Timelined, Openable { } //ich.setModified(false); setSwfDeep(ich); - ich.setTimelined(this); + ich.setTimelined(this); } updateCharacters(); + for (CharacterTag ich:importedCharacters) { + if (ich instanceof DefineSpriteTag) { + ((DefineSpriteTag)ich).resetTimeline(); + } + } } } }