diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-05-17 16:20:41 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-05-17 16:25:43 +0300 |
commit | 0ef23786fe40af2f42b82c790b439f441985e245 (patch) | |
tree | 021a9b546ada8e470cd354d4ac03a52db1b91e8c | |
parent | 2e635b650089289ef53b830b2007d34262cb959c (diff) |
EEVEE: Fix Motion Blur for copy-on-write
Get current frame from depsgraph, not scene.
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_motion_blur.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c index 114a2450716..f7e0eeaa643 100644 --- a/source/blender/draw/engines/eevee/eevee_motion_blur.c +++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c @@ -119,7 +119,7 @@ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda /* Update Motion Blur Matrices */ if (camera) { float persmat[4][4]; - float ctime = BKE_scene_frame_get(scene_eval); + float ctime = DEG_get_ctime(draw_ctx->depsgraph); float delta = scene_eval->eevee.motion_blur_shutter; Object *camera_object = DEG_get_evaluated_object(draw_ctx->depsgraph, camera); |