Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/space_sequencer.c
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | static SpaceLink *sequencer_new(const ScrArea *UNUSED(sa), const Scene *scene) | ||||
| ARegion *ar; | ARegion *ar; | ||||
| SpaceSeq *sseq; | SpaceSeq *sseq; | ||||
| sseq = MEM_callocN(sizeof(SpaceSeq), "initsequencer"); | sseq = MEM_callocN(sizeof(SpaceSeq), "initsequencer"); | ||||
| sseq->spacetype = SPACE_SEQ; | sseq->spacetype = SPACE_SEQ; | ||||
| sseq->chanshown = 0; | sseq->chanshown = 0; | ||||
| sseq->view = SEQ_VIEW_SEQUENCE; | sseq->view = SEQ_VIEW_SEQUENCE; | ||||
| sseq->mainb = SEQ_DRAW_IMG_IMBUF; | sseq->mainb = SEQ_DRAW_IMG_IMBUF; | ||||
| sseq->flag = SEQ_SHOW_GPENCIL | SEQ_USE_ALPHA | SEQ_SHOW_MARKER_LINES; | sseq->flag = SEQ_SHOW_GPENCIL | SEQ_USE_ALPHA | SEQ_SHOW_MARKERS; | ||||
| /* header */ | /* header */ | ||||
| ar = MEM_callocN(sizeof(ARegion), "header for sequencer"); | ar = MEM_callocN(sizeof(ARegion), "header for sequencer"); | ||||
| BLI_addtail(&sseq->regionbase, ar); | BLI_addtail(&sseq->regionbase, ar); | ||||
| ar->regiontype = RGN_TYPE_HEADER; | ar->regiontype = RGN_TYPE_HEADER; | ||||
| ar->alignment = (U.uiflag & USER_HEADER_BOTTOM) ? RGN_ALIGN_BOTTOM : RGN_ALIGN_TOP; | ar->alignment = (U.uiflag & USER_HEADER_BOTTOM) ? RGN_ALIGN_BOTTOM : RGN_ALIGN_TOP; | ||||
| ▲ Show 20 Lines • Show All 774 Lines • Show Last 20 Lines | |||||