[Bf-blender-cvs] [96285e1ca42] blender2.8: VSE preview: Get depsgraph from EvaluationContext

Dalai Felinto noreply at git.blender.org
Mon Feb 26 22:04:57 CET 2018


Commit: 96285e1ca42bd9fb667a84ef79bf0aea70b6b717
Author: Dalai Felinto
Date:   Mon Feb 26 18:04:18 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB96285e1ca42bd9fb667a84ef79bf0aea70b6b717

VSE preview: Get depsgraph from EvaluationContext

Note: Sequencer preview is working only for Clay, for Eevee is still not working.

===================================================================

M	source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 68996cdf906..5e649c6d2ea 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -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;



More information about the Bf-blender-cvs mailing list