Fixed #2178 Undo on sprites

This commit is contained in:
Jindra Petřík
2024-01-05 23:55:00 +01:00
parent 7a8760def9
commit f931488477
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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);