[Bf-blender-cvs] [2610845250b] master: Cleanup: remove redundant sequencer under cursor check

Campbell Barton noreply at git.blender.org
Wed May 29 03:37:45 CEST 2019


Commit: 2610845250b63f00f40dc98a70e462fea61341c1
Author: Campbell Barton
Date:   Wed May 29 11:33:34 2019 +1000
Branches: master
https://developer.blender.org/rB2610845250b63f00f40dc98a70e462fea61341c1

Cleanup: remove redundant sequencer under cursor check

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

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 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);



More information about the Bf-blender-cvs mailing list