Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_particlesystem.c
| Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| #if 0 | #if 0 | ||||
| const ParticleSystemModifierData *psmd = (const ParticleSystemModifierData *)md; | const ParticleSystemModifierData *psmd = (const ParticleSystemModifierData *)md; | ||||
| #endif | #endif | ||||
| ParticleSystemModifierData *tpsmd = (ParticleSystemModifierData *)target; | ParticleSystemModifierData *tpsmd = (ParticleSystemModifierData *)target; | ||||
| BKE_modifier_copydata_generic(md, target, flag); | BKE_modifier_copydata_generic(md, target, flag); | ||||
| /* NOTE: `psys` pointer here is just copied over from `md` to `target`. This is dangerous, as it | |||||
| * will generate invalid data in case we are copying between different objects. Extra external | |||||
| * code has to be called then to ensure proper remapping of that pointer. See e.g. | |||||
| * `BKE_object_copy_particlesystems` or `BKE_object_copy_modifier`. */ | |||||
| tpsmd->mesh_final = NULL; | tpsmd->mesh_final = NULL; | ||||
| tpsmd->mesh_original = NULL; | tpsmd->mesh_original = NULL; | ||||
| tpsmd->totdmvert = tpsmd->totdmedge = tpsmd->totdmface = 0; | tpsmd->totdmvert = tpsmd->totdmedge = tpsmd->totdmface = 0; | ||||
| } | } | ||||
| static void requiredDataMask(Object *UNUSED(ob), | static void requiredDataMask(Object *UNUSED(ob), | ||||
| ModifierData *md, | ModifierData *md, | ||||
| CustomData_MeshMasks *r_cddata_masks) | CustomData_MeshMasks *r_cddata_masks) | ||||
| ▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines | |||||