From 5314161491d41461fe09c4774229481dde93e250 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Sun, 9 Feb 2020 17:59:13 +0100 Subject: VSE: Add option to select handles with box selection Patch adds an "Handle" option to the `SEQUENCER_OT_box_select` operator, that allows to select the handles instead of whole strips. Feature is mapped to Alt key modifier A difference from the proposed design in T70730 is that covering the entire strip with the box actually selects both handles. Reviewed By: iss Differential Revision: https://developer.blender.org/D6372 --- source/blender/editors/space_sequencer/sequencer_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c') diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index ae1d63b5f93..6ebccf31355 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -449,7 +449,7 @@ static void drawmeta_contents(Scene *scene, Sequence *seqm, float x1, float y1, } /* clamp handles to defined size in pixel space */ -static float draw_seq_handle_size_get_clamped(Sequence *seq, const float pixelx) +float sequence_handle_size_get_clamped(Sequence *seq, const float pixelx) { const float minhandle = pixelx * SEQ_HANDLE_SIZE_MIN; const float maxhandle = pixelx * SEQ_HANDLE_SIZE_MAX; @@ -806,7 +806,7 @@ static void draw_seq_strip(const bContext *C, View2D *v2d = &ar->v2d; float x1, x2, y1, y2; unsigned char col[4], background_col[4], is_single_image; - const float handsize_clamped = draw_seq_handle_size_get_clamped(seq, pixelx); + const float handsize_clamped = sequence_handle_size_get_clamped(seq, pixelx); /* we need to know if this is a single image/color or not for drawing */ is_single_image = (char)BKE_sequence_single_check(seq); -- cgit v1.2.3