Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | if (pset->edittype == PE_TYPE_PARTICLES && pid->type == PTCACHE_TYPE_PARTICLES) { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| else if (pset->edittype == PE_TYPE_SOFTBODY && pid->type == PTCACHE_TYPE_SOFTBODY) { | else if (pset->edittype == PE_TYPE_SOFTBODY && pid->type == PTCACHE_TYPE_SOFTBODY) { | ||||
| if (create && pid->cache->flag & PTCACHE_BAKED && !pid->cache->edit) { | if (create && pid->cache->flag & PTCACHE_BAKED && !pid->cache->edit) { | ||||
| pset->flag |= PE_FADE_TIME; | pset->flag |= PE_FADE_TIME; | ||||
| // NICE TO HAVE but doesn't work: pset->brushtype = PE_BRUSH_COMB; | /* Nice to have but doesn't work: `pset->brushtype = PE_BRUSH_COMB;`. */ | ||||
| PE_create_particle_edit(depsgraph, scene, ob, pid->cache, NULL); | PE_create_particle_edit(depsgraph, scene, ob, pid->cache, NULL); | ||||
| } | } | ||||
| edit = pid->cache->edit; | edit = pid->cache->edit; | ||||
| break; | break; | ||||
| } | } | ||||
| else if (pset->edittype == PE_TYPE_CLOTH && pid->type == PTCACHE_TYPE_CLOTH) { | else if (pset->edittype == PE_TYPE_CLOTH && pid->type == PTCACHE_TYPE_CLOTH) { | ||||
| if (create && pid->cache->flag & PTCACHE_BAKED && !pid->cache->edit) { | if (create && pid->cache->flag & PTCACHE_BAKED && !pid->cache->edit) { | ||||
| pset->flag |= PE_FADE_TIME; | pset->flag |= PE_FADE_TIME; | ||||
| // NICE TO HAVE but doesn't work: pset->brushtype = PE_BRUSH_COMB; | /* Nice to have but doesn't work: `pset->brushtype = PE_BRUSH_COMB;`. */ | ||||
| PE_create_particle_edit(depsgraph, scene, ob, pid->cache, NULL); | PE_create_particle_edit(depsgraph, scene, ob, pid->cache, NULL); | ||||
| } | } | ||||
| edit = pid->cache->edit; | edit = pid->cache->edit; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| /* Don't consider inactive or render dependency graphs, since they might be evaluated for a | /* Don't consider inactive or render dependency graphs, since they might be evaluated for a | ||||
| ▲ Show 20 Lines • Show All 5,316 Lines • Show Last 20 Lines | |||||