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:
authorCampbell Barton <ideasman42@gmail.com>2021-10-08 04:55:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-08 05:15:19 +0300
commitf9f88f50cb5c362dd613f58a5312eceb69269282 (patch)
tree809a275d5fc507ad54deeeba75de10fb8ddfc218 /source/blender/editors/gpencil/annotate_paint.c
parent29e496e768cd850f731521c9bb95e017e09885be (diff)
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>
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 59ea105fbbb..8924865f5e1 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -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;
}