diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-02 10:22:14 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-02 10:35:45 +0300 |
commit | 8ece0816d9ddf25c4fc695bf244ed2e261433ee2 (patch) | |
tree | 087bf6a6a1890609801bb71aecd100856c7ea44a /source/blender/draw/intern/draw_cache_impl_gpencil.c | |
parent | f0f44fd92f1684552ee0275d14bb6dd72405c8fd (diff) |
EEVEE: Rewrite: Implement nodetree support with every geometry types
This commit introduce back support for all geometry types and all nodetree support.
Only the forward shading pipeline is implemented for now.
Vertex Displacement is automatically enabled for now.
Lighting & Shading is placeholder.
Related Task: T93220
# Conflicts:
# source/blender/draw/engines/eevee_next/eevee_engine.cc
# source/blender/gpu/CMakeLists.txt
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_gpencil.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_gpencil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c index a4465b9aed4..aecf4b2f004 100644 --- a/source/blender/draw/intern/draw_cache_impl_gpencil.c +++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c @@ -954,4 +954,9 @@ GPUBatch *DRW_cache_gpencil_edit_curve_points_get(Object *ob, int cfra) return cache->edit_curve_points_batch; } +int DRW_gpencil_material_count_get(bGPdata *gpd) +{ + return max_ii(1, gpd->totcol); +} + /** \} */ |