VSE: don't allow strip preview when clicking on the scrubbing region

Don't set 'special preview' or Solo mode if scrubbing in scrubbing region.

Author: a.monti

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D7234
This commit is contained in:
Richard Antalik 2020-04-06 00:11:55 +02:00
parent 0d0036cb53
commit 0e7599bc15
1 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,7 @@
#include "ED_anim_api.h"
#include "ED_screen.h"
#include "ED_sequencer.h"
#include "ED_time_scrub_ui.h"
#include "ED_util.h"
#include "DEG_depsgraph.h"
@ -155,7 +156,9 @@ static void change_frame_seq_preview_begin(bContext *C, const wmEvent *event)
bScreen *screen = CTX_wm_screen(C);
if (area && area->spacetype == SPACE_SEQ) {
SpaceSeq *sseq = area->spacedata.first;
if (ED_space_sequencer_check_show_strip(sseq)) {
ARegion *region = CTX_wm_region(C);
if (ED_space_sequencer_check_show_strip(sseq) &&
!ED_time_scrub_event_in_region(region, event)) {
ED_sequencer_special_preview_set(C, event->mval);
}
}