Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_motion_blur.c
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | static void eevee_motion_blur_camera_get_matrix_at_time(Scene *scene, | ||||
| camdata_cpy.id.orig_id = NULL; | camdata_cpy.id.orig_id = NULL; | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| /* Past matrix */ | /* Past matrix */ | ||||
| /* FIXME : This is a temporal solution that does not take care of parent animations */ | /* FIXME : This is a temporal solution that does not take care of parent animations */ | ||||
| /* Recalc Anim manually */ | /* Recalc Anim manually */ | ||||
| BKE_animsys_evaluate_animdata( | BKE_animsys_evaluate_animdata( | ||||
| draw_ctx->depsgraph, scene, &camdata_cpy.id, camdata_cpy.adt, time, ADT_RECALC_ALL); | scene, &camdata_cpy.id, camdata_cpy.adt, time, ADT_RECALC_ALL, false); | ||||
| BKE_object_where_is_calc_time(draw_ctx->depsgraph, scene, &cam_cpy, time); | BKE_object_where_is_calc_time(draw_ctx->depsgraph, scene, &cam_cpy, time); | ||||
| /* Compute winmat */ | /* Compute winmat */ | ||||
| CameraParams params; | CameraParams params; | ||||
| BKE_camera_params_init(¶ms); | BKE_camera_params_init(¶ms); | ||||
| if (v3d != NULL) { | if (v3d != NULL) { | ||||
| BKE_camera_params_from_view3d(¶ms, draw_ctx->depsgraph, v3d, rv3d); | BKE_camera_params_from_view3d(¶ms, draw_ctx->depsgraph, v3d, rv3d); | ||||
| ▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines | |||||