Restore frame number after exporting
This commit is contained in:
parent
f16004dc42
commit
4bb27e5e8c
|
|
@ -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()
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue