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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-08-27 13:15:48 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-08-27 13:15:48 +0400
commit4035bf16e75acde1ef77d8a176edc95dbad70f35 (patch)
treefe22b077d5bbc7ef1f9f29ceeaa1a3e626425326 /source/blender
parentd6a92c9c31423168d3facb747cc215e7b33b6e7b (diff)
Fix #31853: Marker deletion invokes strip deletion
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 81699d36f5f..5a40c2ce4e7 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -1668,6 +1668,20 @@ static int sequencer_delete_exec(bContext *C, wmOperator *UNUSED(op))
return OPERATOR_FINISHED;
}
+static int sequencer_delete_invoke(bContext *C, wmOperator *op, wmEvent *event)
+{
+ ARegion *ar = CTX_wm_region(C);
+
+ if (ar->regiontype == RGN_TYPE_WINDOW) {
+ /* bounding box of 30 pixels is used for markers shortcuts,
+ * prevent conflict with markers shortcurts here
+ */
+ if (event->mval[1] <= 30)
+ return OPERATOR_PASS_THROUGH;
+ }
+
+ return WM_operator_confirm(C, op, event);
+}
void SEQUENCER_OT_delete(wmOperatorType *ot)
{
@@ -1678,7 +1692,7 @@ void SEQUENCER_OT_delete(wmOperatorType *ot)
ot->description = "Erase selected strips from the sequencer";
/* api callbacks */
- ot->invoke = WM_operator_confirm;
+ ot->invoke = sequencer_delete_invoke;
ot->exec = sequencer_delete_exec;
ot->poll = sequencer_edit_poll;