Skip to content

Commit

Permalink
Merge pull request #270 from AndreasDemenagas/issue269
Browse files Browse the repository at this point in the history
Fixes issue #269 - Short Play breaks with less than 5 frames
  • Loading branch information
charlielee committed Sep 24, 2020
2 parents b4712c4 + 4a7035d commit c2b4757
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/main/Playback/Playback.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
if (!this.isPlaying) {
const totalFrames = global.projectInst.currentTake.getTotalFrames()
const number = totalFrames - 5;
if (totalFrames <= 5) {
this.previewCapturedFrames();
return
}
this.previewCapturedFrames(number);
} else {
console.log("already playing...");
Expand Down Expand Up @@ -111,8 +115,7 @@
*
* @param {Integer} number - Frame number that previewing begins
*/
previewCapturedFrames(number = 0) {
console.log("Previewing from frame " + number);
previewCapturedFrames(number = 0) {
// Display playback window
if (global.projectInst.getCurrentMode() === "capture") {
global.projectInst.setCurrentMode("playback");
Expand Down

0 comments on commit c2b4757

Please sign in to comment.