Fix #134607: Sequencer render animation preview not working
This main thread check was introduced in 4536a4c610. 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
This commit is contained in:
committed by
Brecht Van Lommel
parent
24fbd71a56
commit
4e02acf2ba
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user