diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-21 18:38:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-21 18:39:00 +0300 |
commit | a6914d8f33dc7937845ddb27e44b52d6fe8bece1 (patch) | |
tree | 5da184b56308a9292fc963f52e9415b9cbf92520 /source | |
parent | 5c08d17423516540dc8be27396bee4529d6c879b (diff) |
Eevee: Fix missing camera animation with CoW
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_render.c b/source/blender/draw/engines/eevee/eevee_render.c index 503c2da0544..52d45e2ef04 100644 --- a/source/blender/draw/engines/eevee/eevee_render.c +++ b/source/blender/draw/engines/eevee/eevee_render.c @@ -90,7 +90,8 @@ void EEVEE_render_init(EEVEE_Data *ved, RenderEngine *engine, struct Depsgraph * } /* Set the pers & view matrix. */ - struct Object *camera = RE_GetCamera(engine->re); + /* TODO(sergey): Shall render hold pointer to an evaluated camera instead? */ + struct Object *camera = DEG_get_evaluated_object(depsgraph, RE_GetCamera(engine->re)); float frame = BKE_scene_frame_get(scene); RE_GetCameraWindow(engine->re, camera, frame, g_data->winmat); RE_GetCameraModelMatrix(engine->re, camera, g_data->viewinv); |