From 9be5b2d23fb46a7da22d16decd044324ed8d4e78 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 23 Nov 2018 14:41:38 -0200 Subject: Pass viewport to BASE_ related tests, for viewport view/select restrictions Note: functions like select all are still not respecting that. I will fix this as part of the local view commit though. --- source/blender/editors/gpencil/drawgpencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil/drawgpencil.c') diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 2b2e3772e4d..7f67caf91ca 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -1726,7 +1726,7 @@ void ED_gpencil_draw_view3d( /* check that we have grease-pencil stuff to draw */ // XXX: This is the only place that still uses this function - bGPdata *gpd = ED_gpencil_data_get_active_v3d(view_layer); + bGPdata *gpd = ED_gpencil_data_get_active_v3d(view_layer, v3d); if (gpd == NULL) return; /* when rendering to the offscreen buffer we don't want to -- cgit v1.2.3