Fixed #1684 Internal viewer - animated subsprites

This commit is contained in:
Jindra Petřík
2021-11-19 09:14:03 +01:00
parent a818badf01
commit b68b7ff2f0
3 changed files with 7 additions and 5 deletions

View File

@@ -2428,7 +2428,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
}
//Frame "time" - ticks in current frame
int currentFrameTicks = 0;
if (frameCount == 1) { //We have only one frame, so the ticks on that frame equal ticks on whole timeline
if (frameCount == 1 || stillFrame) { //We have only one frame, so the ticks on that frame equal ticks on whole timeline
currentFrameTicks = ticksFromStart;
}
nextFrame(thisTimer, skipFrames, currentFrameTicks);