mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 16:30:47 +00:00
Do not add the characterid tags (for example DefineFontName) multiple times to the preview swf
This commit is contained in:
@@ -750,7 +750,8 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
|
||||
if (treeItem instanceof Frame) {
|
||||
Frame fn = (Frame) treeItem;
|
||||
Timelined parent = fn.timeline.timelined;
|
||||
List<Integer> doneCharacters = new ArrayList<>();
|
||||
|
||||
Set<Integer> doneCharacters = new HashSet<>();
|
||||
for (Tag t : parent.getTags()) {
|
||||
if (t instanceof FileAttributesTag || t instanceof SetBackgroundColorTag) {
|
||||
continue;
|
||||
@@ -770,18 +771,14 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
|
||||
}
|
||||
}
|
||||
|
||||
if (t instanceof ShowFrameTag || t instanceof PlaceObjectTypeTag || t instanceof RemoveTag) {
|
||||
continue;
|
||||
}
|
||||
|
||||
//if (t instanceof ShowFrameTag || t instanceof PlaceObjectTypeTag || t instanceof RemoveTag) {
|
||||
// continue;
|
||||
//}
|
||||
if (t instanceof CharacterTag) {
|
||||
int characterId = ((CharacterTag) t).getCharacterId();
|
||||
if (!doneCharacters.contains(characterId)) {
|
||||
doneCharacters.add(((CharacterTag) t).getCharacterId());
|
||||
}
|
||||
doneCharacters.add(characterId);
|
||||
writeTag(t, sos2);
|
||||
}
|
||||
|
||||
writeTag(t, sos2);
|
||||
}
|
||||
|
||||
RECT r = parent.getRect();
|
||||
|
||||
Reference in New Issue
Block a user