diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-06-30 21:41:09 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-06-30 21:45:37 +0300 |
commit | a9696f04a012ce23ef419afe489378d1ce840638 (patch) | |
tree | 512359b4cb1ab601f5afbb7d17bf08369e404965 /source/blender/editors/space_sequencer | |
parent | fbcc00d10df93bb167bf25248ae931edd5a23b87 (diff) |
Fix T90964: Strip can't be deleted if cursor is at bottom of timeline
Caused by hard-coded width of markers region causing operator to pass
through.
Execute operator if there are no markers.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 79eeb3c0374..cb95e9a75de 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -1703,8 +1703,10 @@ static int sequencer_delete_exec(bContext *C, wmOperator *op) static int sequencer_delete_invoke(bContext *C, wmOperator *op, const wmEvent *event) { ARegion *region = CTX_wm_region(C); + Scene *scene = CTX_data_scene(C); + ListBase *markers = &scene->markers; - if (region->regiontype == RGN_TYPE_WINDOW) { + if (region->regiontype == RGN_TYPE_WINDOW && !BLI_listbase_is_empty(markers)) { /* Bounding box of 30 pixels is used for markers shortcuts, * prevent conflict with markers shortcuts here. */ |