From 180e871020bdb95cbbef22dc0339c69383cfc3aa Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 30 Nov 2018 11:08:40 +0100 Subject: [PATCH] Cleanup: remove useless depsgraph parameter in some texpaint helper func. --- source/blender/editors/sculpt_paint/paint_image_proj.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 7c2660f24f8..c1bf308797c 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3076,8 +3076,7 @@ static void project_paint_delayed_face_init(ProjPaintState *ps, const MLoopTri * #endif } -static void proj_paint_state_viewport_init( - ProjPaintState *ps, const Depsgraph *depsgraph, const char symmetry_flag) +static void proj_paint_state_viewport_init(ProjPaintState *ps, const char symmetry_flag) { float mat[3][3]; float viewmat[4][4]; @@ -3138,7 +3137,7 @@ static void proj_paint_state_viewport_init( invert_m4_m4(viewinv, viewmat); } else if (ps->source == PROJ_SRC_IMAGE_CAM) { - Object *cam_ob_eval = DEG_get_evaluated_object(depsgraph, ps->scene->camera); + Object *cam_ob_eval = DEG_get_evaluated_object(ps->depsgraph, ps->scene->camera); CameraParams params; /* viewmat & viewinv */ @@ -3852,7 +3851,7 @@ static void project_paint_begin( proj_paint_state_cavity_init(ps); } - proj_paint_state_viewport_init(ps, CTX_data_depsgraph(C), symmetry_flag); + proj_paint_state_viewport_init(ps, symmetry_flag); /* calculate vert screen coords * run this early so we can calculate the x/y resolution of our bucket rect */