Draw manager: Expose grease pencil helper function
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user