Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_explode.c
| Show First 20 Lines • Show All 1,119 Lines • ▼ Show 20 Lines | if (psmd) { | ||||
| ParticleSystem *psys = psmd->psys; | ParticleSystem *psys = psmd->psys; | ||||
| if (psys == NULL || psys->totpart == 0) { | if (psys == NULL || psys->totpart == 0) { | ||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| if (psys->part == NULL || psys->particles == NULL) { | if (psys->part == NULL || psys->particles == NULL) { | ||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| if (psmd->mesh_final == NULL) { | if (BKE_particle_modifier_mesh_final_get(psmd) == NULL) { | ||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| BKE_mesh_tessface_ensure(mesh); /* BMESH - UNTIL MODIFIER IS UPDATED FOR MPoly */ | BKE_mesh_tessface_ensure(mesh); /* BMESH - UNTIL MODIFIER IS UPDATED FOR MPoly */ | ||||
| /* 1. find faces to be exploded if needed */ | /* 1. find faces to be exploded if needed */ | ||||
| if (emd->facepa == NULL || psmd->flag & eParticleSystemFlag_Pars || | if (emd->facepa == NULL || psmd->flag & eParticleSystemFlag_Pars || | ||||
| emd->flag & eExplodeFlag_CalcFaces || | emd->flag & eExplodeFlag_CalcFaces || | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||