Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-07-17 19:31:48 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-07-17 19:32:59 +0300
commit20de6f01edd3ac25a606c2f6b1b277b615786790 (patch)
treeae63156a56ac3374746d6b764346143f52a24afa /source/blender
parent3a15ec337ef2bea094e284963584d8fb320520bd (diff)
Fix T45464: Blender Sequencer "Select Strips to the Left" produces opposite behavior to what is intended.
Logic was just broken for the LEFT case here. Also cleaned up and made behavior more consistant between strips and markers.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_select.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index c9fdb4ac5f5..2100c97079e 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -358,36 +358,32 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *e
x = UI_view2d_region_to_view_x(v2d, event->mval[0]);
break;
case SEQ_SELECT_LR_LEFT:
+ x = CFRA - 1.0f;
+ break;
case SEQ_SELECT_LR_RIGHT:
+ default:
x = CFRA;
break;
}
SEQP_BEGIN (ed, seq)
{
- if (x < CFRA) {
- if (seq->enddisp <= CFRA) {
- seq->flag |= SELECT;
- recurs_sel_seq(seq);
- }
- }
- else {
- if (seq->startdisp >= CFRA) {
- seq->flag |= SELECT;
- recurs_sel_seq(seq);
- }
+ if (((x < CFRA) && (seq->enddisp <= CFRA)) ||
+ ((x >= CFRA) && (seq->startdisp >= CFRA)))
+ {
+ seq->flag |= SELECT;
+ recurs_sel_seq(seq);
}
}
SEQ_END
-
{
SpaceSeq *sseq = CTX_wm_space_seq(C);
if (sseq && sseq->flag & SEQ_MARKER_TRANS) {
TimeMarker *tmarker;
for (tmarker = scene->markers.first; tmarker; tmarker = tmarker->next) {
- if (((x < CFRA) && tmarker->frame < CFRA) ||
- ((x >= CFRA) && tmarker->frame >= CFRA))
+ if (((x < CFRA) && (tmarker->frame <= CFRA)) ||
+ ((x >= CFRA) && (tmarker->frame >= CFRA)))
{
tmarker->flag |= SELECT;
}