Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer_api.c
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
| static Sequence *alloc_generic_sequence( | static Sequence *alloc_generic_sequence( | ||||
| Editing *ed, const char *name, int frame_start, int channel, int type, const char *file) | Editing *ed, const char *name, int frame_start, int channel, int type, const char *file) | ||||
| { | { | ||||
| Sequence *seq; | Sequence *seq; | ||||
| Strip *strip; | Strip *strip; | ||||
| StripElem *se; | StripElem *se; | ||||
| seq = BKE_sequence_alloc(ed->seqbasep, frame_start, channel); | seq = BKE_sequence_alloc(ed->seqbasep, frame_start, channel, type); | ||||
| seq->type = type; | |||||
| BLI_strncpy(seq->name + 2, name, sizeof(seq->name) - 2); | BLI_strncpy(seq->name + 2, name, sizeof(seq->name) - 2); | ||||
| BKE_sequence_base_unique_name_recursive(&ed->seqbase, seq); | BKE_sequence_base_unique_name_recursive(&ed->seqbase, seq); | ||||
| seq->strip = strip = MEM_callocN(sizeof(Strip), "strip"); | seq->strip = strip = MEM_callocN(sizeof(Strip), "strip"); | ||||
| seq->strip->us = 1; | seq->strip->us = 1; | ||||
| if (file) { | if (file) { | ||||
| ▲ Show 20 Lines • Show All 613 Lines • Show Last 20 Lines | |||||