[Bf-blender-cvs] [1ed31bef1a4] blender2.8: Draw manager: Expose grease pencil helper function

Sergey Sharybin noreply at git.blender.org
Fri Nov 9 17:53:08 CET 2018


Commit: 1ed31bef1a4e4512b2adfe282ccebf4c607bac3f
Author: Sergey Sharybin
Date:   Fri Nov 9 16:30:44 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB1ed31bef1a4e4512b2adfe282ccebf4c607bac3f

Draw manager: Expose grease pencil helper function

===================================================================

M	source/blender/draw/DRW_engine.h
M	source/blender/draw/intern/draw_manager.c

===================================================================

diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h
index e192a7efa51..d790cee48bb 100644
--- a/source/blender/draw/DRW_engine.h
+++ b/source/blender/draw/DRW_engine.h
@@ -128,6 +128,7 @@ void DRW_draw_depth_loop(
         struct ARegion *ar, struct View3D *v3d);
 
 /* grease pencil render */
+bool DRW_render_check_grease_pencil(struct Depsgraph *depsgraph);
 void DRW_render_gpencil(struct RenderEngine *engine, struct Depsgraph *depsgraph);
 void DRW_gpencil_freecache(struct Object *ob);
 
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 3cff67b5284..c84dd69125c 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1611,8 +1611,8 @@ void DRW_draw_render_loop_offscreen(
 	GPU_offscreen_bind(ofs, false);
 }
 
-/* helper to check if exit object type to render */
-static bool DRW_render_check_grease_pencil(Depsgraph *depsgraph)
+/* Helper to check if exit object type to render. */
+bool DRW_render_check_grease_pencil(Depsgraph *depsgraph)
 {
 	DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN(depsgraph, ob)
 	{



More information about the Bf-blender-cvs mailing list