Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / gpencil / gpencil_edit.c
index fc6df49cf6c8f5264d3e62a17f37959b84a785f9..6310cab9e4e7d5253aa31fc916e886b7ebdd8b5b 100644 (file)
@@ -2106,8 +2106,9 @@ static int gp_strokes_reproject_exec(bContext *C, wmOperator *op)
        
        /* init autodist for geometry projection */
        if (mode == GP_REPROJECT_SURFACE) {
+               struct Depsgraph *graph = CTX_data_depsgraph(C);
                view3d_region_operator_needs_opengl(CTX_wm_window(C), gsc.ar);
-               ED_view3d_autodist_init(scene, gsc.ar, CTX_wm_view3d(C), 0);
+               ED_view3d_autodist_init(graph, gsc.ar, CTX_wm_view3d(C), 0);
        }
        
        // TODO: For deforming geometry workflow, create new frames?