diff options
Diffstat (limited to 'source/blender/draw/engines/eevee')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lookdev.c | 2 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_motion_blur.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c index b5ec5ce21a9..7be6fc2d030 100644 --- a/source/blender/draw/engines/eevee/eevee_lookdev.c +++ b/source/blender/draw/engines/eevee/eevee_lookdev.c @@ -88,7 +88,7 @@ void EEVEE_lookdev_cache_init(EEVEE_Data *vedata, rect = &fallback_rect; } else { - rect = ED_region_visible_rect(draw_ctx->ar); + rect = ED_region_visible_rect(draw_ctx->region); } /* Make the viewport width scale the lookdev spheres a bit. diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c index fc5af62d45f..80c38839b71 100644 --- a/source/blender/draw/engines/eevee/eevee_motion_blur.c +++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c @@ -48,7 +48,7 @@ static struct { extern char datatoc_effect_motion_blur_frag_glsl[]; static void eevee_motion_blur_camera_get_matrix_at_time(Scene *scene, - ARegion *ar, + ARegion *region, RegionView3D *rv3d, View3D *v3d, Object *camera, @@ -83,7 +83,7 @@ static void eevee_motion_blur_camera_get_matrix_at_time(Scene *scene, if (v3d != NULL) { BKE_camera_params_from_view3d(¶ms, draw_ctx->depsgraph, v3d, rv3d); - BKE_camera_params_compute_viewplane(¶ms, ar->winx, ar->winy, 1.0f, 1.0f); + BKE_camera_params_compute_viewplane(¶ms, region->winx, region->winy, 1.0f, 1.0f); } else { BKE_camera_params_from_object(¶ms, &cam_cpy); @@ -115,7 +115,7 @@ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda View3D *v3d = draw_ctx->v3d; RegionView3D *rv3d = draw_ctx->rv3d; - ARegion *ar = draw_ctx->ar; + ARegion *region = draw_ctx->region; if (scene_eval->eevee.flag & SCE_EEVEE_MOTION_BLUR_ENABLED) { /* Update Motion Blur Matrices */ @@ -151,7 +151,7 @@ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda /* Current matrix */ if (effects->motion_blur_mat_cached == false) { eevee_motion_blur_camera_get_matrix_at_time( - scene, ar, rv3d, v3d, ob_camera_eval, ctime, effects->current_world_to_ndc); + scene, region, rv3d, v3d, ob_camera_eval, ctime, effects->current_world_to_ndc); } /* Only continue if camera is not being keyed */ @@ -160,12 +160,12 @@ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda /* Past matrix */ if (effects->motion_blur_mat_cached == false) { eevee_motion_blur_camera_get_matrix_at_time( - scene, ar, rv3d, v3d, ob_camera_eval, ctime - delta, effects->past_world_to_ndc); + scene, region, rv3d, v3d, ob_camera_eval, ctime - delta, effects->past_world_to_ndc); #if 0 /* for future high quality blur */ /* Future matrix */ eevee_motion_blur_camera_get_matrix_at_time( - scene, ar, rv3d, v3d, ob_camera_eval, ctime + delta, effects->future_world_to_ndc); + scene, region, rv3d, v3d, ob_camera_eval, ctime + delta, effects->future_world_to_ndc); #endif invert_m4_m4(effects->current_ndc_to_world, effects->current_world_to_ndc); } |