Draw manager: Expose grease pencil helper function

This commit is contained in:
2018-11-09 16:30:44 +01:00
parent 49a7bcafd9
commit 1ed31bef1a
2 changed files with 3 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ void DRW_draw_depth_loop(
struct ARegion *ar, struct View3D *v3d); struct ARegion *ar, struct View3D *v3d);
/* grease pencil render */ /* grease pencil render */
bool DRW_render_check_grease_pencil(struct Depsgraph *depsgraph);
void DRW_render_gpencil(struct RenderEngine *engine, struct Depsgraph *depsgraph); void DRW_render_gpencil(struct RenderEngine *engine, struct Depsgraph *depsgraph);
void DRW_gpencil_freecache(struct Object *ob); void DRW_gpencil_freecache(struct Object *ob);

View File

@@ -1611,8 +1611,8 @@ void DRW_draw_render_loop_offscreen(
GPU_offscreen_bind(ofs, false); GPU_offscreen_bind(ofs, false);
} }
/* helper to check if exit object type to render */ /* Helper to check if exit object type to render. */
static bool DRW_render_check_grease_pencil(Depsgraph *depsgraph) bool DRW_render_check_grease_pencil(Depsgraph *depsgraph)
{ {
DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN(depsgraph, ob) DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN(depsgraph, ob)
{ {