Skip to content

Commit

Permalink
fix issue betaflight#425 -- fix export video stuck calculating if cra…
Browse files Browse the repository at this point in the history
…ft:size or stick:size set to 0%
  • Loading branch information
nerdCopter committed Jun 13, 2022
1 parent 192519a commit a0a3de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/flightlog_video_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ 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.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) canvasContext.drawImage(analyserCanvas, analyserCanvasLeft, analyserCanvasTop);

videoWriter.addFrame(canvas);
Expand Down

0 comments on commit a0a3de3

Please sign in to comment.