Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_object.c
| Show First 20 Lines • Show All 1,059 Lines • ▼ Show 20 Lines | for (md = ob_to->modifiers.first; md; md = md_next) { | ||||
| md_next = md->next; | md_next = md->next; | ||||
| /* remove all particle system modifiers as well, | /* remove all particle system modifiers as well, | ||||
| * these need to sync to the particle system list | * these need to sync to the particle system list | ||||
| */ | */ | ||||
| if (ELEM(md->type, | if (ELEM(md->type, | ||||
| eModifierType_ParticleSystem, | eModifierType_ParticleSystem, | ||||
| eModifierType_DynamicPaint, | eModifierType_DynamicPaint, | ||||
| eModifierType_Smoke)) { | eModifierType_Manta)) { | ||||
| BLI_remlink(&ob_to->modifiers, md); | BLI_remlink(&ob_to->modifiers, md); | ||||
| modifier_free(md); | modifier_free(md); | ||||
| } | } | ||||
| } | } | ||||
| BKE_object_free_particlesystems(ob_to); | BKE_object_free_particlesystems(ob_to); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines | |||||