Fixed #1923 Wrong cyclic tag detection causing hidden sprites

This commit is contained in:
Jindra Petřík
2022-12-28 19:20:01 +01:00
parent 62e862cbb0
commit e5dc9fb663
2 changed files with 5 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import com.jpexs.decompiler.flash.tags.base.CharacterTag;
import com.jpexs.decompiler.flash.tags.base.DrawableTag;
import com.jpexs.decompiler.flash.tags.base.PlaceObjectTypeTag;
import com.jpexs.decompiler.flash.tags.base.RenderContext;
import com.jpexs.decompiler.flash.tags.base.SoundStreamHeadTypeTag;
import com.jpexs.decompiler.flash.timeline.Timeline;
import com.jpexs.decompiler.flash.timeline.Timelined;
import com.jpexs.decompiler.flash.types.BasicType;
@@ -347,7 +348,7 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
@Override
public void getNeededCharacters(Set<Integer> needed) {
for (Tag t : getTags()) {
if (t instanceof CharacterIdTag) {
if ((t instanceof CharacterIdTag) && !(t instanceof SoundStreamHeadTypeTag)) {
needed.add(((CharacterIdTag) t).getCharacterId());
}
}