Restore frame number after exporting

This commit is contained in:
Skyler Lehmkuhl 2025-01-14 17:36:35 -05:00
parent f16004dc42
commit 4bb27e5e8c
1 changed files with 2 additions and 0 deletions

View File

@ -5220,6 +5220,7 @@ async function render() {
const oldContext = context;
context = exportContext;
const oldRootFrame = root.currentFrameNum
let currentFrame = 0;
const bitrate = 1e6
const frameTimeMicroseconds = parseInt(1_000_000 / config.framerate)
@ -5302,6 +5303,7 @@ async function render() {
} else {
// Once all frames are processed, reset context and export
context = oldContext;
root.setFrameNum(oldRootFrame)
finishEncoding()
}
};