From f931488477e8deb4ec6dde588482efb2398fd331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 5 Jan 2024 23:55:00 +0100 Subject: [PATCH] Fixed #2178 Undo on sprites --- CHANGELOG.md | 2 ++ .../jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 616f96cf9..387a23d72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. - [#2174] Ignoring PlaceObjects with flagMove on empty depth - [#2175] Removing DefineButtonSound, warning about incorrect sound character type in FLA export - [#2175] FLA Export - exporting 320kbps MP3s as 160kbps +- [#2178] Undo on sprites ## [20.1.0] - 2023-12-30 ### Added @@ -3366,6 +3367,7 @@ Major version of SWF to XML export changed to 2. [#2172]: https://www.free-decompiler.com/flash/issues/2172 [#2174]: https://www.free-decompiler.com/flash/issues/2174 [#2175]: https://www.free-decompiler.com/flash/issues/2175 +[#2178]: https://www.free-decompiler.com/flash/issues/2178 [#2100]: https://www.free-decompiler.com/flash/issues/2100 [#2123]: https://www.free-decompiler.com/flash/issues/2123 [#2119]: https://www.free-decompiler.com/flash/issues/2119 diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java index a4cc5cdf9..5c609cae5 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java @@ -3482,6 +3482,9 @@ public class TagTreeContextMenu extends JPopupMenu { Tag tag = (Tag) item; tag.undo(); tag.getSwf().clearAllCache(); + if (tag instanceof Timelined) { + ((Timelined) tag).resetTimeline(); + } tree.getFullModel().updateNode(item); } catch (InterruptedException | IOException ex) { logger.log(Level.SEVERE, null, ex);