From e15320568a29e163b32e261dc1aaee22404e0dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Fri, 8 Apr 2022 18:23:40 +0200 Subject: Curves edit mode: show dots for points This adds support to show dots for the curves points when in edit mode, using a specific overlay. This also adds `DRW_curves_batch_cache_create_requested` which for now only creates the point buffer for the newly added `edit_points` batch. In the future, this will also handle other edit mode overlays, and probably also replace the current curves batch cache creation. Maniphest Tasks: T95770 Differential Revision: https://developer.blender.org/D14262 --- source/blender/draw/intern/draw_cache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/draw/intern/draw_cache.c') diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index 5fa0b4fc26a..e606d67df25 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -3348,6 +3348,9 @@ void drw_batch_cache_generate_requested(Object *ob) case OB_SURF: DRW_curve_batch_cache_create_requested(ob, scene); break; + case OB_CURVES: + DRW_curves_batch_cache_create_requested(ob); + break; /* TODO: all cases. */ default: break; -- cgit v1.2.3