Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-05-17 16:20:41 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-05-17 16:25:43 +0300
commit0ef23786fe40af2f42b82c790b439f441985e245 (patch)
tree021a9b546ada8e470cd354d4ac03a52db1b91e8c
parent2e635b650089289ef53b830b2007d34262cb959c (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.c2
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);