Fix T86682: Scene strip DOF not evaluated correctly

Camera object used for rendering reffered to original not evaluated data.

Use `DEG_get_evaluated_object()` to get evaluated camera.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11039
This commit is contained in:
Richard Antalik 2021-04-22 08:15:12 +02:00
parent 0f66dbea90
commit 4554f27adf
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by issue #86682, VSE scene strips: Scene graph not updating correctly (?)
1 changed files with 2 additions and 1 deletions

View File

@ -1537,13 +1537,14 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context,
/* opengl offscreen render */
depsgraph = BKE_scene_ensure_depsgraph(context->bmain, scene, view_layer);
BKE_scene_graph_update_for_newframe(depsgraph);
Object *camera_eval = DEG_get_evaluated_object(depsgraph, camera);
ibuf = sequencer_view3d_fn(
/* set for OpenGL render (NULL when scrubbing) */
depsgraph,
scene,
&context->scene->display.shading,
context->scene->r.seq_prev_type,
camera,
camera_eval,
width,
height,
IB_rect,