Skip to content

Commit

Permalink
Merge pull request #586 from nerdCopter/20220613_fix_issue_425
Browse files Browse the repository at this point in the history
fix issue #425 -- fix export video stuck calculating if craft/stick size = 0
  • Loading branch information
haslinghuis authored Jun 24, 2022
2 parents 64abeb7 + 9eaa3b6 commit 1fd3922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/flightlog_video_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ function FlightLogVideoRenderer(flightLog, logParameters, videoOptions, events)
renderFrame = function() {
graph.render(frameTime);

if(logParameters.hasSticks) canvasContext.drawImage(stickCanvas, stickCanvasLeft, stickCanvasTop);
if(logParameters.hasCraft) canvasContext.drawImage(craftCanvas, craftCanvasLeft, craftCanvasTop);
if(logParameters.hasAnalyser) canvasContext.drawImage(analyserCanvas, analyserCanvasLeft, analyserCanvasTop);
if (logParameters.hasSticks && parseInt(userSettings.sticks.size) > 0) canvasContext.drawImage(stickCanvas, stickCanvasLeft, stickCanvasTop);
if (logParameters.hasCraft && parseInt(userSettings.craft.size) > 0) canvasContext.drawImage(craftCanvas, craftCanvasLeft, craftCanvasTop);
if (logParameters.hasAnalyser && parseInt(userSettings.analyser.size) > 0) canvasContext.drawImage(analyserCanvas, analyserCanvasLeft, analyserCanvasTop);

videoWriter.addFrame(canvas);

Expand Down

0 comments on commit 1fd3922

Please sign in to comment.