Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_legacy.c
| Show First 20 Lines • Show All 3,066 Lines • ▼ Show 20 Lines | for (ob = main->object.first; ob; ob = ob->id.next) { | ||||
| ModifierData *md; | ModifierData *md; | ||||
| ParticleSystemModifierData *psmd; | ParticleSystemModifierData *psmd; | ||||
| ParticleSettings *part; | ParticleSettings *part; | ||||
| /* create new particle system */ | /* create new particle system */ | ||||
| psys = MEM_callocN(sizeof(ParticleSystem), "particle_system"); | psys = MEM_callocN(sizeof(ParticleSystem), "particle_system"); | ||||
| psys->pointcache = BKE_ptcache_add(&psys->ptcaches); | psys->pointcache = BKE_ptcache_add(&psys->ptcaches); | ||||
| part = psys->part = psys_new_settings("ParticleSettings", main); | part = psys->part = psys_new_settings("ParticleSettings", main, PART_EMITTER); | ||||
| /* needed for proper libdata lookup */ | /* needed for proper libdata lookup */ | ||||
| blo_do_versions_oldnewmap_insert(fd->libmap, psys->part, psys->part, 0); | blo_do_versions_oldnewmap_insert(fd->libmap, psys->part, psys->part, 0); | ||||
| part->id.lib = ob->id.lib; | part->id.lib = ob->id.lib; | ||||
| part->id.us--; | part->id.us--; | ||||
| part->id.flag |= (ob->id.flag & LIB_NEED_LINK); | part->id.flag |= (ob->id.flag & LIB_NEED_LINK); | ||||
| ▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines | |||||