Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/annotate_paint.c
| Show First 20 Lines • Show All 1,314 Lines • ▼ Show 20 Lines | switch (curarea->spacetype) { | ||||
| } | } | ||||
| case SPACE_SEQ: { | case SPACE_SEQ: { | ||||
| SpaceSeq *sseq = curarea->spacedata.first; | SpaceSeq *sseq = curarea->spacedata.first; | ||||
| /* set current area */ | /* set current area */ | ||||
| p->area = curarea; | p->area = curarea; | ||||
| p->region = region; | p->region = region; | ||||
| p->v2d = ®ion->v2d; | p->v2d = ®ion->v2d; | ||||
| p->align_flag = &ts->gpencil_seq_align; | p->align_flag = &ts->gpencil_v2d_align; | ||||
| /* check that gpencil data is allowed to be drawn */ | /* check that gpencil data is allowed to be drawn */ | ||||
| if (sseq->mainb == SEQ_DRAW_SEQUENCE) { | if (sseq->mainb == SEQ_DRAW_SEQUENCE) { | ||||
| p->status = GP_STATUS_ERROR; | p->status = GP_STATUS_ERROR; | ||||
| if (G.debug & G_DEBUG) { | if (G.debug & G_DEBUG) { | ||||
| printf("Error: In active view (sequencer), active mode doesn't support Grease Pencil\n"); | printf("Error: In active view (sequencer), active mode doesn't support Grease Pencil\n"); | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case SPACE_IMAGE: { | case SPACE_IMAGE: { | ||||
| /* SpaceImage *sima = curarea->spacedata.first; */ | /* SpaceImage *sima = curarea->spacedata.first; */ | ||||
| /* set the current area */ | /* set the current area */ | ||||
| p->area = curarea; | p->area = curarea; | ||||
| p->region = region; | p->region = region; | ||||
| p->v2d = ®ion->v2d; | p->v2d = ®ion->v2d; | ||||
| p->align_flag = &ts->gpencil_ima_align; | p->align_flag = &ts->gpencil_v2d_align; | ||||
| break; | break; | ||||
| } | } | ||||
| case SPACE_CLIP: { | case SPACE_CLIP: { | ||||
| SpaceClip *sc = curarea->spacedata.first; | SpaceClip *sc = curarea->spacedata.first; | ||||
| MovieClip *clip = ED_space_clip_get_clip(sc); | MovieClip *clip = ED_space_clip_get_clip(sc); | ||||
| if (clip == NULL) { | if (clip == NULL) { | ||||
| p->status = GP_STATUS_ERROR; | p->status = GP_STATUS_ERROR; | ||||
| ▲ Show 20 Lines • Show All 1,549 Lines • Show Last 20 Lines | |||||