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 83 Lines • ▼ Show 20 Lines | |||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_nla_types.h" | #include "DNA_nla_types.h" | ||||
| #include "DNA_node_types.h" | #include "DNA_node_types.h" | ||||
| #include "DNA_object_fluidsim_types.h" | #include "DNA_object_fluidsim_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_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_text_types.h" | #include "DNA_text_types.h" | ||||
| #include "DNA_view3d_types.h" | #include "DNA_view3d_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_sdna_types.h" | #include "DNA_sdna_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_sequence_types.h" | #include "DNA_sequence_types.h" | ||||
| #include "DNA_smoke_types.h" | #include "DNA_smoke_types.h" | ||||
| ▲ Show 20 Lines • Show All 6,294 Lines • ▼ Show 20 Lines | #endif | ||||
| else { | else { | ||||
| /* else read the cache from file. */ | /* else read the cache from file. */ | ||||
| if (sce->eevee.light_cache) { | if (sce->eevee.light_cache) { | ||||
| sce->eevee.light_cache = newdataadr(fd, sce->eevee.light_cache); | sce->eevee.light_cache = newdataadr(fd, sce->eevee.light_cache); | ||||
| direct_link_lightcache(fd, sce->eevee.light_cache); | direct_link_lightcache(fd, sce->eevee.light_cache); | ||||
| } | } | ||||
| } | } | ||||
| /* LANPR things */ | |||||
| sce->lanpr.active_layer = newdataadr(fd, sce->lanpr.active_layer); | |||||
| sce->lanpr.render_buffer = NULL; | |||||
| link_list(fd, &sce->lanpr.line_layers); | |||||
| for (LANPR_LineLayer *ll = sce->lanpr.line_layers.first; ll; ll = ll->next) { | |||||
| link_list(fd, &ll->components); | |||||
| } | |||||
| sce->layer_properties = newdataadr(fd, sce->layer_properties); | sce->layer_properties = newdataadr(fd, sce->layer_properties); | ||||
| IDP_DirectLinkGroup_OrFree(&sce->layer_properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | IDP_DirectLinkGroup_OrFree(&sce->layer_properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | ||||
| } | } | ||||
| /* ****************** READ GREASE PENCIL ***************** */ | /* ****************** READ GREASE PENCIL ***************** */ | ||||
| /* relink's grease pencil data's refs */ | /* relink's grease pencil data's refs */ | ||||
| static void lib_link_gpencil(FileData *fd, Main *main) | static void lib_link_gpencil(FileData *fd, Main *main) | ||||
| ▲ Show 20 Lines • Show All 4,412 Lines • Show Last 20 Lines | |||||