Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/writefile.c
| Show First 20 Lines • Show All 2,407 Lines • ▼ Show 20 Lines | |||||
| static void write_view_settings(WriteData *wd, ColorManagedViewSettings *view_settings) | static void write_view_settings(WriteData *wd, ColorManagedViewSettings *view_settings) | ||||
| { | { | ||||
| if (view_settings->curve_mapping) { | if (view_settings->curve_mapping) { | ||||
| write_curvemapping(wd, view_settings->curve_mapping); | write_curvemapping(wd, view_settings->curve_mapping); | ||||
| } | } | ||||
| } | } | ||||
| static void write_view3dshading(WriteData *wd, View3DShading *shading) | |||||
| { | |||||
| if (shading->prop) { | |||||
| IDP_WriteProperty(shading->prop, wd); | |||||
| } | |||||
| } | |||||
| static void write_paint(WriteData *wd, Paint *p) | static void write_paint(WriteData *wd, Paint *p) | ||||
| { | { | ||||
| if (p->cavity_curve) { | if (p->cavity_curve) { | ||||
| write_curvemapping(wd, p->cavity_curve); | write_curvemapping(wd, p->cavity_curve); | ||||
| } | } | ||||
| writestruct(wd, DATA, PaintToolSlot, p->tool_slots_len, p->tool_slots); | writestruct(wd, DATA, PaintToolSlot, p->tool_slots_len, p->tool_slots); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | static void write_scene(WriteData *wd, Scene *sce) | ||||
| } | } | ||||
| /* Eevee Lightcache */ | /* Eevee Lightcache */ | ||||
| if (sce->eevee.light_cache && !wd->use_memfile) { | if (sce->eevee.light_cache && !wd->use_memfile) { | ||||
| writestruct(wd, DATA, LightCache, 1, sce->eevee.light_cache); | writestruct(wd, DATA, LightCache, 1, sce->eevee.light_cache); | ||||
| write_lightcache(wd, sce->eevee.light_cache); | write_lightcache(wd, sce->eevee.light_cache); | ||||
| } | } | ||||
| write_view3dshading(wd, &sce->display.shading); | |||||
| /* Freed on doversion. */ | /* Freed on doversion. */ | ||||
| BLI_assert(sce->layer_properties == NULL); | BLI_assert(sce->layer_properties == NULL); | ||||
| } | } | ||||
| static void write_gpencil(WriteData *wd, bGPdata *gpd) | static void write_gpencil(WriteData *wd, bGPdata *gpd) | ||||
| { | { | ||||
| if (gpd->id.us > 0 || wd->use_memfile) { | if (gpd->id.us > 0 || wd->use_memfile) { | ||||
| /* write gpd data block to file */ | /* write gpd data block to file */ | ||||
| ▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | if (sl->spacetype == SPACE_VIEW3D) { | ||||
| } | } | ||||
| if (v3d->fx_settings.ssao) { | if (v3d->fx_settings.ssao) { | ||||
| writestruct(wd, DATA, GPUSSAOSettings, 1, v3d->fx_settings.ssao); | writestruct(wd, DATA, GPUSSAOSettings, 1, v3d->fx_settings.ssao); | ||||
| } | } | ||||
| if (v3d->fx_settings.dof) { | if (v3d->fx_settings.dof) { | ||||
| writestruct(wd, DATA, GPUDOFSettings, 1, v3d->fx_settings.dof); | writestruct(wd, DATA, GPUDOFSettings, 1, v3d->fx_settings.dof); | ||||
| } | } | ||||
| write_view3dshading(wd, &v3d->shading); | |||||
| } | } | ||||
| else if (sl->spacetype == SPACE_GRAPH) { | else if (sl->spacetype == SPACE_GRAPH) { | ||||
| SpaceGraph *sipo = (SpaceGraph *)sl; | SpaceGraph *sipo = (SpaceGraph *)sl; | ||||
| ListBase tmpGhosts = sipo->runtime.ghost_curves; | ListBase tmpGhosts = sipo->runtime.ghost_curves; | ||||
| /* temporarily disable ghost curves when saving */ | /* temporarily disable ghost curves when saving */ | ||||
| BLI_listbase_clear(&sipo->runtime.ghost_curves); | BLI_listbase_clear(&sipo->runtime.ghost_curves); | ||||
| ▲ Show 20 Lines • Show All 1,281 Lines • Show Last 20 Lines | |||||