VSE preview: Get depsgraph from EvaluationContext
authorDalai Felinto <dfelinto@gmail.com>
Mon, 26 Feb 2018 21:04:18 +0000 (18:04 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 26 Feb 2018 21:04:18 +0000 (18:04 -0300)
Note: Sequencer preview is working only for Clay, for Eevee is still not working.

source/blender/editors/space_view3d/view3d_draw.c

index 68996cdf9067c574b730b07e9f94003f820174ac..5e649c6d2eaf4b38cdb9c158f2efbbe8f8a2fbb6 100644 (file)
@@ -2036,9 +2036,7 @@ void ED_view3d_draw_offscreen(
        else
                view3d_main_region_setup_view(eval_ctx, scene, v3d, ar, viewmat, winmat, NULL);
 
-       /* XXX, should take depsgraph as arg */
-       Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, false);
-       BLI_assert(depsgraph != NULL);
+       Depsgraph *depsgraph = eval_ctx->depsgraph;
 
        /* main drawing call */
        RenderEngineType *engine_type = eval_ctx->engine_type;