diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-29 13:39:41 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-29 13:39:41 +0300 |
commit | e12767a0352a9e113892b4a07c6c8446d3ff361f (patch) | |
tree | 9fe48bb33bda0256e1421f34714bc22668d7b06e /source/blender/draw/intern/draw_cache_impl.h | |
parent | 6374644fd11797806ab2e92341e5e7d32e94067b (diff) |
Volumes: support selection and outlines in viewport
Previously, one could only select a volume object in the outliner
or by clicking on the object origin. This patch allows you to click
on the actual volume.
Furthermore, the generated (invisible) mesh that is used for
selection is also used to draw an outline for the volume object now.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D9022
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index 9e7a2e2916c..e5cc18f6e09 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -152,6 +152,7 @@ struct GPUBatch **DRW_cache_pointcloud_surface_shaded_get(struct Object *ob, int DRW_volume_material_count_get(struct Volume *volume); struct GPUBatch *DRW_volume_batch_cache_get_wireframes_face(struct Volume *volume); +struct GPUBatch *DRW_volume_batch_cache_get_selection_surface(struct Volume *volume); /* Mesh */ void DRW_mesh_batch_cache_create_requested(struct TaskGraph *task_graph, |