From 34d6c04003775943ecf6a8015a97eb32452c7efb Mon Sep 17 00:00:00 2001 From: Antonioya Date: Tue, 19 Mar 2019 10:48:24 +0100 Subject: Fix T62734: Crash when annotations are rendered from the VSE .view menu. The render was using the old grease pencil code and not the new annotation code for render. --- source/blender/editors/gpencil/annotate_draw.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/editors/gpencil/annotate_draw.c') diff --git a/source/blender/editors/gpencil/annotate_draw.c b/source/blender/editors/gpencil/annotate_draw.c index 3d70a7f6843..111a24da528 100644 --- a/source/blender/editors/gpencil/annotate_draw.c +++ b/source/blender/editors/gpencil/annotate_draw.c @@ -1133,4 +1133,13 @@ void ED_gpencil_draw_view3d_annotations( gp_draw_data_all(scene, gpd, offsx, offsy, winx, winy, CFRA, dflag, v3d->spacetype); } +void ED_gpencil_draw_ex( + Scene *scene, bGPdata *gpd, + int winx, int winy, const int cfra, const char spacetype) +{ + int dflag = GP_DRAWDATA_NOSTATUS | GP_DRAWDATA_ONLYV2D; + + gp_draw_data_all(scene, gpd, 0, 0, winx, winy, cfra, dflag, spacetype); +} + /* ************************************************** */ -- cgit v1.2.3