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.
This commit is contained in:
parent
fbcc00d10d
commit
a9696f04a0
Notes:
blender-bot
2023-02-14 07:18:54 +01:00
Referenced by issue #90964, VSE: Mouse cursor over invisible (i.e. marker-less) marker region inhibits delete hotkey meant for selected strip deletion
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue