Fix sequencer preview/strip checks
- Drawing annotations used a deprecated value to detect if drawing was supported. - ED_space_sequencer_check_show_strip was checking the preview image type (which doesn't impact strip display). Signed-off-by: Campbell Barton <ideasman42@gmail.com>
This commit is contained in:
parent
29e496e768
commit
f9f88f50cb
|
@ -1311,7 +1311,7 @@ static bool annotation_session_initdata(bContext *C, tGPsdata *p)
|
|||
p->align_flag = &ts->gpencil_v2d_align;
|
||||
|
||||
/* check that gpencil data is allowed to be drawn */
|
||||
if (sseq->mainb == SEQ_DRAW_SEQUENCE) {
|
||||
if (!((sseq->mainb == SEQ_DRAW_IMG_IMBUF) && (region->regiontype == RGN_TYPE_PREVIEW))) {
|
||||
p->status = GP_STATUS_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -130,14 +130,13 @@ bool ED_space_sequencer_maskedit_poll(bContext *C)
|
|||
/* Are we displaying the seq output (not channels or histogram). */
|
||||
bool ED_space_sequencer_check_show_imbuf(SpaceSeq *sseq)
|
||||
{
|
||||
return (ELEM(sseq->view, SEQ_VIEW_PREVIEW, SEQ_VIEW_SEQUENCE_PREVIEW) &&
|
||||
ELEM(sseq->mainb, SEQ_DRAW_SEQUENCE, SEQ_DRAW_IMG_IMBUF));
|
||||
return (sseq->mainb == SEQ_DRAW_IMG_IMBUF) &&
|
||||
(ELEM(sseq->view, SEQ_VIEW_PREVIEW, SEQ_VIEW_SEQUENCE_PREVIEW));
|
||||
}
|
||||
|
||||
bool ED_space_sequencer_check_show_strip(SpaceSeq *sseq)
|
||||
{
|
||||
return (ELEM(sseq->view, SEQ_VIEW_SEQUENCE, SEQ_VIEW_SEQUENCE_PREVIEW) &&
|
||||
ELEM(sseq->mainb, SEQ_DRAW_SEQUENCE, SEQ_DRAW_IMG_IMBUF));
|
||||
return ELEM(sseq->view, SEQ_VIEW_SEQUENCE, SEQ_VIEW_SEQUENCE_PREVIEW);
|
||||
}
|
||||
|
||||
static bool sequencer_fcurves_targets_color_strip(const FCurve *fcurve)
|
||||
|
|
Loading…
Reference in New Issue