Restore frame number after exporting
This commit is contained in:
parent
f16004dc42
commit
4bb27e5e8c
|
|
@ -5220,6 +5220,7 @@ async function render() {
|
||||||
const oldContext = context;
|
const oldContext = context;
|
||||||
context = exportContext;
|
context = exportContext;
|
||||||
|
|
||||||
|
const oldRootFrame = root.currentFrameNum
|
||||||
let currentFrame = 0;
|
let currentFrame = 0;
|
||||||
const bitrate = 1e6
|
const bitrate = 1e6
|
||||||
const frameTimeMicroseconds = parseInt(1_000_000 / config.framerate)
|
const frameTimeMicroseconds = parseInt(1_000_000 / config.framerate)
|
||||||
|
|
@ -5302,6 +5303,7 @@ async function render() {
|
||||||
} else {
|
} else {
|
||||||
// Once all frames are processed, reset context and export
|
// Once all frames are processed, reset context and export
|
||||||
context = oldContext;
|
context = oldContext;
|
||||||
|
root.setFrameNum(oldRootFrame)
|
||||||
finishEncoding()
|
finishEncoding()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue