[Bf-blender-cvs] [b3b9e08] master: Sequencer: Select sideof failed for strips touching the playhead

Campbell Barton noreply at git.blender.org
Wed Dec 17 23:04:47 CET 2014


Commit: b3b9e084235366e16877a93ecbb0a719fb64bdcf
Author: Campbell Barton
Date:   Wed Dec 17 23:10:12 2014 +0100
Branches: master
https://developer.blender.org/rBb3b9e084235366e16877a93ecbb0a719fb64bdcf

Sequencer: Select sideof failed for strips touching the playhead

===================================================================

M	source/blender/editors/space_sequencer/sequencer_select.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index 933daf4..6792bbe 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -357,25 +357,22 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *e
 			case SEQ_SELECT_LR_MOUSE:
 				x = UI_view2d_region_to_view_x(v2d, event->mval[0]);
 				break;
-				
 			case SEQ_SELECT_LR_LEFT:
-				x = CFRA - 1;
-				break;
 			case SEQ_SELECT_LR_RIGHT:
-				x = CFRA + 1;
+				x = CFRA;
 				break;
 		}
 		
 		SEQP_BEGIN (ed, seq)
 		{
 			if (x < CFRA) {
-				if (seq->enddisp < CFRA) {
+				if (seq->enddisp <= CFRA) {
 					seq->flag |= SELECT;
 					recurs_sel_seq(seq);
 				}
 			}
 			else {
-				if (seq->startdisp > CFRA) {
+				if (seq->startdisp >= CFRA) {
 					seq->flag |= SELECT;
 					recurs_sel_seq(seq);
 				}




More information about the Bf-blender-cvs mailing list