Sequencer: Add option to render OpenGL preview with DoF
[blender-staging.git] / source / blender / editors / render / render_opengl.c
index a2d34ffefa88c689d9d268dc5019068c9778df5d..b7a23bafced44c1911c3a5a230fd5aa0d00458da 100644 (file)
@@ -684,6 +684,11 @@ static bool screen_opengl_render_init(bContext *C, wmOperator *op)
                        oglrender->fx = GPU_fx_compositor_create();
                }
        }
+       else if (is_sequencer) {
+               if (scene->r.seq_flag & R_SEQ_CAMERA_DOF) {
+                       oglrender->fx = GPU_fx_compositor_create();
+               }
+       }
 
        /* create render */
        oglrender->re = RE_NewSceneRender(scene);