morphshape animation fix

This commit is contained in:
honfika@gmail.com
2015-04-26 16:46:04 +02:00
parent 7803fb78b4
commit d28d72c096
3 changed files with 6 additions and 5 deletions

View File

@@ -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);