From 4e02acf2ba6655cb19fada2cf77c1efb76ef0ad0 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 18 Feb 2025 13:21:02 +0100 Subject: [PATCH] Fix #134607: Sequencer render animation preview not working This main thread check was introduced in 4536a4c6104. At the time OpenGL only ever worked in the main thread, but that limitation was lifted in Blender 2.80. With this operator being converted to use the jobs system, it now needs to work in non-main threads. Note that this code does not run in parallel with main thread drawing anyway, because of WM_job_main_thread_lock_acquire and draw manager locks. What changed is that we can now activate OpenGL contexts on other threads. Pull Request: https://projects.blender.org/blender/blender/pulls/134696 --- source/blender/sequencer/intern/render.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/sequencer/intern/render.cc b/source/blender/sequencer/intern/render.cc index 65348f5dde8..493e5cf39ad 100644 --- a/source/blender/sequencer/intern/render.cc +++ b/source/blender/sequencer/intern/render.cc @@ -1486,7 +1486,7 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, is_frame_update = (orig_data.timeline_frame != scene->r.cfra) || (orig_data.subframe != scene->r.subframe); - if (sequencer_view3d_fn && is_preview && camera && BLI_thread_is_main()) { + if (sequencer_view3d_fn && is_preview && camera) { char err_out[256] = "unknown"; int width, height; BKE_render_resolution(&scene->r, false, &width, &height);