Sequencer: Add option to render OpenGL preview with DoF

The title says it all actually, controlled with DoF check box next to textured
solid check box.

Thanks Campbell for review!
This commit is contained in:
2017-11-24 12:19:26 +01:00
parent 37fc23dd9e
commit 9b42b3e114
13 changed files with 81 additions and 20 deletions

View 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);