Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 891 Lines • ▼ Show 20 Lines | static void scene_blend_write(BlendWriter *writer, ID *id, const void *id_address) | ||||
| } | } | ||||
| BKE_paint_blend_write(writer, &tos->imapaint.paint); | BKE_paint_blend_write(writer, &tos->imapaint.paint); | ||||
| Editing *ed = sce->ed; | Editing *ed = sce->ed; | ||||
| if (ed) { | if (ed) { | ||||
| BLO_write_struct(writer, Editing, ed); | BLO_write_struct(writer, Editing, ed); | ||||
| SEQ_blend_sanitize_channels(&ed->seqbase); | |||||
| SEQ_blend_write(writer, &ed->seqbase); | SEQ_blend_write(writer, &ed->seqbase); | ||||
| /* new; meta stack too, even when its nasty restore code */ | /* new; meta stack too, even when its nasty restore code */ | ||||
| LISTBASE_FOREACH (MetaStack *, ms, &ed->metastack) { | LISTBASE_FOREACH (MetaStack *, ms, &ed->metastack) { | ||||
| BLO_write_struct(writer, MetaStack, ms); | BLO_write_struct(writer, MetaStack, ms); | ||||
| } | } | ||||
| } | } | ||||
| if (sce->r.avicodecdata) { | if (sce->r.avicodecdata) { | ||||
| ▲ Show 20 Lines • Show All 176 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; | ||||
| ed->runtime.sequence_lookup = NULL; | ed->runtime.sequence_lookup = 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_blend_sanitize_channels(&ed->seqbase); | |||||
| /* Read in sequence member data. */ | /* Read in sequence member data. */ | ||||
| SEQ_blend_read(reader, &ed->seqbase); | SEQ_blend_read(reader, &ed->seqbase); | ||||
| /* link metastack, slight abuse of structs here, | /* link metastack, slight abuse of structs here, | ||||
| * have to restore pointer to internal part in struct */ | * have to restore pointer to internal part in struct */ | ||||
| { | { | ||||
| Sequence temp; | Sequence temp; | ||||
| void *poin; | void *poin; | ||||
| ▲ Show 20 Lines • Show All 2,493 Lines • Show Last 20 Lines | |||||