mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:20:51 +00:00
morphshape animation fix
This commit is contained in:
@@ -688,10 +688,9 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
int frameCount = timelined.getTimeline().getFrameCount();
|
||||
int newframe;
|
||||
if (frameCount > 0) {
|
||||
if (frame + 1 >= frameCount && !loop) {
|
||||
newframe = frame;
|
||||
} else {
|
||||
newframe = (frame + 1) % frameCount;
|
||||
newframe = (frame + 1) % frameCount;
|
||||
if (newframe == 0 && !loop) {
|
||||
stop();
|
||||
}
|
||||
} else {
|
||||
newframe = frame;
|
||||
|
||||
@@ -2825,6 +2825,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
ds.matrix = new MATRIX();
|
||||
ds.ratio = i * 65535 / framesCnt;
|
||||
f.layers.put(1, ds);
|
||||
f.layersChanged = true;
|
||||
tim.addFrame(f);
|
||||
}
|
||||
} else if (tag instanceof FontTag) {
|
||||
@@ -2836,6 +2837,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
ds.matrix = new MATRIX();
|
||||
ds.time = i;
|
||||
f.layers.put(1, ds);
|
||||
f.layersChanged = true;
|
||||
tim.addFrame(f);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -397,7 +397,7 @@ public class PlayerControls extends JPanel implements ActionListener, MediaDispl
|
||||
totalFrameLabel.setText("" + totalFrames);
|
||||
if (frameRate != 0) {
|
||||
timeLabel.setText("(" + formatMs((currentFrame * 1000) / frameRate) + ")");
|
||||
totalTimeLabel.setText("(" + formatMs(((totalFrames - 1) * 1000) / frameRate) + ")");
|
||||
totalTimeLabel.setText("(" + formatMs((totalFrames * 1000) / frameRate) + ")");
|
||||
}
|
||||
if (totalFrames <= 1 && playbackControls.isVisible()) {
|
||||
playbackControls.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user