diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-29 04:33:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-29 04:33:34 +0300 |
commit | 2610845250b63f00f40dc98a70e462fea61341c1 (patch) | |
tree | 1cca41c585e0058a38a6baa18e50b3f3f633fa5c /source/blender/editors/space_sequencer/sequencer_select.c | |
parent | eaa730ce8c4440fc09b853b7a80b87a5ee3a9fd3 (diff) |
Cleanup: remove redundant sequencer under cursor check
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_select.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_select.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c index 0aa27505c2d..2138b1c16da 100644 --- a/source/blender/editors/space_sequencer/sequencer_select.c +++ b/source/blender/editors/space_sequencer/sequencer_select.c @@ -944,10 +944,12 @@ static int sequencer_box_select_invoke(bContext *C, wmOperator *op, const wmEven const bool tweak = RNA_boolean_get(op->ptr, "tweak"); - int dummy; - Sequence *seq = find_nearest_seq(scene, v2d, &dummy, event->mval); - if (tweak && seq != NULL) { - return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; + if (tweak) { + int hand_dummy; + Sequence *seq = find_nearest_seq(scene, v2d, &hand_dummy, event->mval); + if (seq != NULL) { + return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; + } } return WM_gesture_box_invoke(C, op, event); |