Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle_system.c
| Show First 20 Lines • Show All 2,927 Lines • ▼ Show 20 Lines | if ((part->type==PART_HAIR || psys->flag&PSYS_KEYED || psys->pointcache->flag & PTCACHE_BAKED)==0) | ||||
| skip = 1; /* only hair, keyed and baked stuff can have paths */ | skip = 1; /* only hair, keyed and baked stuff can have paths */ | ||||
| else if (part->ren_as != PART_DRAW_PATH && !(part->type==PART_HAIR && ELEM(part->ren_as, PART_DRAW_OB, PART_DRAW_GR))) | else if (part->ren_as != PART_DRAW_PATH && !(part->type==PART_HAIR && ELEM(part->ren_as, PART_DRAW_OB, PART_DRAW_GR))) | ||||
| skip = 1; /* particle visualization must be set as path */ | skip = 1; /* particle visualization must be set as path */ | ||||
| else if (!psys->renderdata) { | else if (!psys->renderdata) { | ||||
| if (part->draw_as != PART_DRAW_REND) | if (part->draw_as != PART_DRAW_REND) | ||||
| skip = 1; /* draw visualization */ | skip = 1; /* draw visualization */ | ||||
| else if (psys->pointcache->flag & PTCACHE_BAKING) | else if (psys->pointcache->flag & PTCACHE_BAKING) | ||||
| skip = 1; /* no need to cache paths while baking dynamics */ | skip = 1; /* no need to cache paths while baking dynamics */ | ||||
| else if (psys_in_edit_mode(sim->eval_ctx->scene_layer, psys)) { | else if (psys_in_edit_mode(sim->eval_ctx->view_layer, psys)) { | ||||
| if ((pset->flag & PE_DRAW_PART)==0) | if ((pset->flag & PE_DRAW_PART)==0) | ||||
| skip = 1; | skip = 1; | ||||
| else if (part->childtype==0 && (psys->flag & PSYS_HAIR_DYNAMICS && psys->pointcache->flag & PTCACHE_BAKED)==0) | else if (part->childtype==0 && (psys->flag & PSYS_HAIR_DYNAMICS && psys->pointcache->flag & PTCACHE_BAKED)==0) | ||||
| skip = 1; /* in edit mode paths are needed for child particles and dynamic hair */ | skip = 1; /* in edit mode paths are needed for child particles and dynamic hair */ | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,448 Lines • Show Last 20 Lines | |||||