Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 6,455 Lines • ▼ Show 20 Lines | if (sce->ed) { | ||||
| BLO_read_data_address(reader, &ed->act_seq); | BLO_read_data_address(reader, &ed->act_seq); | ||||
| ed->cache = NULL; | ed->cache = NULL; | ||||
| ed->prefetch_job = NULL; | ed->prefetch_job = NULL; | ||||
| /* recursive link sequences, lb will be correctly initialized */ | /* recursive link sequences, lb will be correctly initialized */ | ||||
| link_recurs_seq(reader, &ed->seqbase); | link_recurs_seq(reader, &ed->seqbase); | ||||
| SEQ_BEGIN (ed, seq) { | SEQ_BEGIN (ed, seq) { | ||||
| BKE_sequence_session_uuid_generate(seq); | |||||
| BLO_read_data_address(reader, &seq->seq1); | BLO_read_data_address(reader, &seq->seq1); | ||||
| BLO_read_data_address(reader, &seq->seq2); | BLO_read_data_address(reader, &seq->seq2); | ||||
| BLO_read_data_address(reader, &seq->seq3); | BLO_read_data_address(reader, &seq->seq3); | ||||
| /* a patch: after introduction of effects with 3 input strips */ | /* a patch: after introduction of effects with 3 input strips */ | ||||
| if (seq->seq3 == NULL) { | if (seq->seq3 == NULL) { | ||||
| seq->seq3 = seq->seq2; | seq->seq3 = seq->seq2; | ||||
| } | } | ||||
| Show All 37 Lines | SEQ_BEGIN (ed, seq) { | ||||
| BLO_read_data_address(reader, &seq->strip->proxy); | BLO_read_data_address(reader, &seq->strip->proxy); | ||||
| if (seq->strip->proxy) { | if (seq->strip->proxy) { | ||||
| seq->strip->proxy->anim = NULL; | seq->strip->proxy->anim = NULL; | ||||
| } | } | ||||
| else if (seq->flag & SEQ_USE_PROXY) { | else if (seq->flag & SEQ_USE_PROXY) { | ||||
| BKE_sequencer_proxy_set(seq, true); | BKE_sequencer_proxy_set(seq, true); | ||||
| } | } | ||||
| /* need to load color balance to it could be converted to modifier */ | /* need to load color balance to it could be converted to modifier */ | ||||
brecht: I would move this earlier, at least before functions `BKE_sequencer_proxy_set`, in case future… | |||||
| BLO_read_data_address(reader, &seq->strip->color_balance); | BLO_read_data_address(reader, &seq->strip->color_balance); | ||||
| } | } | ||||
| direct_link_sequence_modifiers(reader, &seq->modifiers); | direct_link_sequence_modifiers(reader, &seq->modifiers); | ||||
| } | } | ||||
| SEQ_END; | SEQ_END; | ||||
| /* link metastack, slight abuse of structs here, | /* link metastack, slight abuse of structs here, | ||||
| ▲ Show 20 Lines • Show All 5,764 Lines • Show Last 20 Lines | |||||
I would move this earlier, at least before functions BKE_sequencer_proxy_set, in case future BKE_sequencer function use the UUID.