Fix T62849: crash entering particle edit mode with hair dynamics
This commit is contained in:
@@ -4798,8 +4798,11 @@ void PE_create_particle_edit(
|
|||||||
edit = (psys) ? psys->edit : cache->edit;
|
edit = (psys) ? psys->edit : cache->edit;
|
||||||
|
|
||||||
if (!edit) {
|
if (!edit) {
|
||||||
ParticleSystem *psys_eval = psys_eval_get(depsgraph, ob, psys);
|
ParticleSystem *psys_eval = NULL;
|
||||||
|
if (psys) {
|
||||||
|
psys_eval = psys_eval_get(depsgraph, ob, psys);
|
||||||
psys_copy_particles(psys, psys_eval);
|
psys_copy_particles(psys, psys_eval);
|
||||||
|
}
|
||||||
|
|
||||||
totpoint = psys ? psys->totpart : (int)((PTCacheMem *)cache->mem_cache.first)->totpoint;
|
totpoint = psys ? psys->totpart : (int)((PTCacheMem *)cache->mem_cache.first)->totpoint;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user