Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/writefile.c
| Show First 20 Lines • Show All 2,731 Lines • ▼ Show 20 Lines | if (sce->r.ffcodecdata.properties) { | ||||
| IDP_WriteProperty(sce->r.ffcodecdata.properties, wd); | IDP_WriteProperty(sce->r.ffcodecdata.properties, wd); | ||||
| } | } | ||||
| /* writing dynamic list of TimeMarkers to the blend file */ | /* writing dynamic list of TimeMarkers to the blend file */ | ||||
| for (TimeMarker *marker = sce->markers.first; marker; marker = marker->next) { | for (TimeMarker *marker = sce->markers.first; marker; marker = marker->next) { | ||||
| writestruct(wd, DATA, TimeMarker, 1, marker); | writestruct(wd, DATA, TimeMarker, 1, marker); | ||||
| } | } | ||||
| /* writing dynamic list of TransformOrientations to the blend file */ | |||||
| for (TransformOrientation *ts = sce->transform_spaces.first; ts; ts = ts->next) { | |||||
| writestruct(wd, DATA, TransformOrientation, 1, ts); | |||||
| } | |||||
| for (SceneRenderLayer *srl = sce->r.layers.first; srl; srl = srl->next) { | for (SceneRenderLayer *srl = sce->r.layers.first; srl; srl = srl->next) { | ||||
| writestruct(wd, DATA, SceneRenderLayer, 1, srl); | writestruct(wd, DATA, SceneRenderLayer, 1, srl); | ||||
| if (srl->prop) { | if (srl->prop) { | ||||
| IDP_WriteProperty(srl->prop, wd); | IDP_WriteProperty(srl->prop, wd); | ||||
| } | } | ||||
| for (FreestyleModuleConfig *fmc = srl->freestyleConfig.modules.first; fmc; fmc = fmc->next) { | for (FreestyleModuleConfig *fmc = srl->freestyleConfig.modules.first; fmc; fmc = fmc->next) { | ||||
| writestruct(wd, DATA, FreestyleModuleConfig, 1, fmc); | writestruct(wd, DATA, FreestyleModuleConfig, 1, fmc); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 983 Lines • ▼ Show 20 Lines | if (cache_file->id.us > 0 || wd->current) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void write_workspace(WriteData *wd, WorkSpace *workspace) | static void write_workspace(WriteData *wd, WorkSpace *workspace) | ||||
| { | { | ||||
| ListBase *layouts = BKE_workspace_layouts_get(workspace); | ListBase *layouts = BKE_workspace_layouts_get(workspace); | ||||
| ListBase *relation_list = BKE_workspace_hook_layout_relations_get(workspace); | ListBase *relation_list = BKE_workspace_hook_layout_relations_get(workspace); | ||||
| ListBase *transform_orientations = BKE_workspace_transform_orientations_get(workspace); | |||||
| writestruct(wd, ID_WS, WorkSpace, 1, workspace); | writestruct(wd, ID_WS, WorkSpace, 1, workspace); | ||||
| writelist(wd, DATA, WorkSpaceLayout, layouts); | writelist(wd, DATA, WorkSpaceLayout, layouts); | ||||
| writelist(wd, DATA, WorkSpaceDataRelation, relation_list); | writelist(wd, DATA, WorkSpaceDataRelation, relation_list); | ||||
| writelist(wd, DATA, TransformOrientation, transform_orientations); | |||||
| } | } | ||||
| /* Keep it last of write_foodata functions. */ | /* Keep it last of write_foodata functions. */ | ||||
| static void write_libraries(WriteData *wd, Main *main) | static void write_libraries(WriteData *wd, Main *main) | ||||
| { | { | ||||
| ListBase *lbarray[MAX_LIBARRAY]; | ListBase *lbarray[MAX_LIBARRAY]; | ||||
| ID *id; | ID *id; | ||||
| int a, tot; | int a, tot; | ||||
| ▲ Show 20 Lines • Show All 478 Lines • Show Last 20 Lines | |||||