[Bf-blender-cvs] [0ef23786fe4] blender2.8: EEVEE: Fix Motion Blur for copy-on-write

Dalai Felinto noreply at git.blender.org
Thu May 17 15:26:33 CEST 2018


Commit: 0ef23786fe40af2f42b82c790b439f441985e245
Author: Dalai Felinto
Date:   Thu May 17 15:20:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB0ef23786fe40af2f42b82c790b439f441985e245

EEVEE: Fix Motion Blur for copy-on-write

Get current frame from depsgraph, not scene.

===================================================================

M	source/blender/draw/engines/eevee/eevee_motion_blur.c

===================================================================

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



More information about the Bf-blender-cvs mailing list