Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/writefile.c
| Show First 20 Lines • Show All 1,395 Lines • ▼ Show 20 Lines | if ((cache->flag & PTCACHE_DISK_CACHE) == 0) { | ||||
| for (; extra; extra = extra->next) { | for (; extra; extra = extra->next) { | ||||
| if (ptcache_extra_struct[extra->type][0] == '\0') { | if (ptcache_extra_struct[extra->type][0] == '\0') { | ||||
| continue; | continue; | ||||
| } | } | ||||
| BLO_write_struct(writer, PTCacheExtra, extra); | BLO_write_struct(writer, PTCacheExtra, extra); | ||||
| BLO_write_struct_array_by_name( | BLO_write_struct_array_by_name( | ||||
| writer, ptcache_extra_struct[extra->type], extra->totdata, extra->data); | writer, ptcache_extra_struct[extra->type], extra->totdata, extra->data); | ||||
| } | } | ||||
| LISTBASE_FOREACH (PTCacheArray *, array, &pm->arrays) { | |||||
| BLO_write_struct(writer, PTCacheArray, array); | |||||
| BLO_write_string(writer, array->identifier); | |||||
| const char *struct_name; | |||||
| int struct_num; | |||||
| CustomData_file_write_info(array->data_type, &struct_name, &struct_num); | |||||
| BLO_write_struct_array_by_name( | |||||
| writer, struct_name, struct_num * array->totdata, array->data); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void write_particlesettings(BlendWriter *writer, | static void write_particlesettings(BlendWriter *writer, | ||||
| ParticleSettings *part, | ParticleSettings *part, | ||||
| const void *id_address) | const void *id_address) | ||||
| ▲ Show 20 Lines • Show All 3,270 Lines • Show Last 20 Lines | |||||