diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-26 19:36:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-26 19:36:56 +0300 |
commit | a7c5d2e159d59e045983009e191c94c1bf561f5d (patch) | |
tree | f0432d6c29fab29c749a9f635a4d919338533822 /source/blender/editors/sculpt_paint | |
parent | edd1512741f9a8fd9c3d93f47ccf367932cff32a (diff) |
Pass graph to depth functions
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 6a020dbdab2..16d81c6e923 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -5017,6 +5017,7 @@ void paint_proj_stroke( /* clone gets special treatment here to avoid going through image initialization */ if (ps_handle->is_clone_cursor_pick) { Scene *scene = ps_handle->scene; + struct Depsgraph *graph = CTX_data_depsgraph(C); View3D *v3d = CTX_wm_view3d(C); ARegion *ar = CTX_wm_region(C); float *cursor = ED_view3d_cursor3d_get(scene, v3d); @@ -5024,7 +5025,7 @@ void paint_proj_stroke( view3d_operator_needs_opengl(C); - if (!ED_view3d_autodist(scene, ar, v3d, mval_i, cursor, false, NULL)) + if (!ED_view3d_autodist(graph, scene, ar, v3d, mval_i, cursor, false, NULL)) return; ED_region_tag_redraw(ar); |