From 596492e639f07b6a0a3f705a0f944dc57f94b7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 29 May 2019 23:52:37 +0200 Subject: DRW: Refactor to use object pointer for drawcall by default This cleans up a bit of duplicated code and some confusion about what was culled and what wasn't. Now everything is culled based on the given object pointer. If the object pointer is NULL there is no culling performed. --- source/blender/draw/engines/gpencil/gpencil_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.c') diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c index f597797ae38..f78f7295d24 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.c +++ b/source/blender/draw/engines/gpencil/gpencil_engine.c @@ -680,7 +680,7 @@ void GPENCIL_cache_populate(void *vedata, Object *ob) copy_v3_v3(grid_matrix[3], ob->obmat[3]); } - DRW_shgroup_call(stl->g_data->shgrps_grid, e_data.batch_grid, grid_matrix); + DRW_shgroup_call_obmat(stl->g_data->shgrps_grid, e_data.batch_grid, grid_matrix); } } } -- cgit v1.2.3