Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/writefile.c
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_material_types.h" | #include "DNA_material_types.h" | ||||
| #include "DNA_node_types.h" | #include "DNA_node_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_object_force_types.h" | #include "DNA_object_force_types.h" | ||||
| #include "DNA_packedFile_types.h" | #include "DNA_packedFile_types.h" | ||||
| #include "DNA_particle_types.h" | #include "DNA_particle_types.h" | ||||
| #include "DNA_lightprobe_types.h" | #include "DNA_lightprobe_types.h" | ||||
| #include "DNA_lanpr_types.h" | |||||
| #include "DNA_rigidbody_types.h" | #include "DNA_rigidbody_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_sdna_types.h" | #include "DNA_sdna_types.h" | ||||
| #include "DNA_sequence_types.h" | #include "DNA_sequence_types.h" | ||||
| #include "DNA_smoke_types.h" | #include "DNA_smoke_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_speaker_types.h" | #include "DNA_speaker_types.h" | ||||
| ▲ Show 20 Lines • Show All 2,542 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); | ||||
| } | } | ||||
| /* LANPR Line Layers */ | |||||
| for (LANPR_LineLayer *ll = sce->lanpr.line_layers.first; ll; ll = ll->next) { | |||||
| writestruct(wd, DATA, LANPR_LineLayer, 1, ll); | |||||
| for (LANPR_LineLayerComponent *llc = ll->components.first; llc; llc = llc->next) { | |||||
| writestruct(wd, DATA, LANPR_LineLayerComponent, 1, llc); | |||||
| } | |||||
| } | |||||
| /* 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 1,513 Lines • Show Last 20 Lines | |||||