Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer_api.c
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | if (BKE_sequence_swap(seq_self, seq_other, &error_msg) == 0) { | ||||
| BKE_report(reports, RPT_ERROR, error_msg); | BKE_report(reports, RPT_ERROR, error_msg); | ||||
| } | } | ||||
| } | } | ||||
| 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; | |||||
| StripElem *se; | StripElem *se; | ||||
| seq = BKE_sequence_alloc(ed->seqbasep, frame_start, channel, type); | seq = BKE_sequence_alloc(ed->seqbasep, frame_start, channel, 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"); | Strip *strip = seq->strip; | ||||
| seq->strip->us = 1; | |||||
| if (file) { | if (file) { | ||||
| strip->stripdata = se = MEM_callocN(sizeof(StripElem), "stripelem"); | strip->stripdata = se = MEM_callocN(sizeof(StripElem), "stripelem"); | ||||
| BLI_split_dirfile(file, strip->dir, se->name, sizeof(strip->dir), sizeof(se->name)); | BLI_split_dirfile(file, strip->dir, se->name, sizeof(strip->dir), sizeof(se->name)); | ||||
| BKE_sequence_init_colorspace(seq); | BKE_sequence_init_colorspace(seq); | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines | |||||