Fixed rendering after playback issue. (#344)

Fixed rendering with playback already started glitch.
This commit is contained in:
Miles Ryan authored and GitHub committed 2024-05-08 09:42:26 -07:00
1 parent d73a1f68a0
commit 868d72d601
1 file changed
+4
+4
View File
@@ -1330,6 +1330,10 @@ class Editor {
// This initializes the generation of a video render scene is where the core work happens
generateVideo() {
console.log("Generating video...", this.frame_buffer);
this.timeline.is_playing = false;
this.timeline.scrubber_frame_position = 0;
this.timeline.current_time = 0;
if (this.rendering || this.generating_preview) {
return;
}