diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-22 23:00:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-11 18:00:23 +0300 |
commit | 943852c0dc17bff74e3cc91d17c2eeb66adacf33 (patch) | |
tree | 875ddff567d967f327a553b0c1c3f4a4105e6f03 /source/blender/draw/intern/draw_cache_impl.h | |
parent | bda2cd8ba5d14a39aef1927d168f2817d20bbaa8 (diff) |
Mesh Batch Cache: Put context evaluation out of batch cache
This is in order to be able to call DRW_mesh_batch_cache_create_requested
outside of the draw manager
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index 64a1a72ed37..385147039d6 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -37,6 +37,7 @@ struct ModifierData; struct ParticleSystem; struct PTCacheEdit; struct SpaceImage; +struct ToolSettings; struct Curve; struct Lattice; @@ -97,7 +98,9 @@ struct GPUBatch *DRW_lattice_batch_cache_get_all_verts(struct Lattice *lt); struct GPUBatch *DRW_lattice_batch_cache_get_edit_verts(struct Lattice *lt); /* Mesh */ -void DRW_mesh_batch_cache_create_requested(struct Object *ob, struct Mesh *me); +void DRW_mesh_batch_cache_create_requested( + struct Object *ob, struct Mesh *me, + const struct ToolSettings *ts, const bool is_paint_mode, const bool use_hide); struct GPUBatch *DRW_mesh_batch_cache_get_all_verts(struct Mesh *me); struct GPUBatch *DRW_mesh_batch_cache_get_all_edges(struct Mesh *me); |