Fixed: #1651 FLA Export - mask layers

This commit is contained in:
Jindra Petřík
2021-03-09 21:03:09 +01:00
parent e3b1fc4654
commit 600d0669a7
3 changed files with 155 additions and 78 deletions

View File

@@ -1201,7 +1201,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
}
private void showSelectedName() {
if (selectedDepth > -1 && frame > -1) {
if (selectedDepth > -1 && frame > -1 && timelined != null) {
DepthState ds = timelined.getTimeline().getFrame(frame).layers.get(selectedDepth);
if (ds != null) {
CharacterTag cht = timelined.getTimeline().swf.getCharacter(ds.characterId);
@@ -1573,7 +1573,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
textTag = null;
newTextTag = null;
displayObjectCache.clear();
displayObjectCache.clear();
}
private void nextFrame(Timer thisTimer, final int cnt, final int timeShouldBe) {