Fix for crash when using virtual parent hairs and clumping.
The paths for parents and children are generated using the same function with a rather obscure test to distinguish them. Modifiers (clump, kink, roughness) should not be applied to parents though.
This commit is contained in:
parent
6e44e4181f
commit
4a132abd9d
|
@ -2287,17 +2287,17 @@ static void psys_thread_create_path(ParticleTask *task, struct ChildParticle *cp
|
|||
par = pcache[cpa->parent];
|
||||
}
|
||||
|
||||
if (pa)
|
||||
psys_particle_on_emitter(ctx->sim.psmd, part->from, pa->num, pa->num_dmcache, pa->fuv, pa->foffset,
|
||||
par_co, NULL, NULL, NULL, par_orco, NULL);
|
||||
else
|
||||
zero_v3(par_orco);
|
||||
|
||||
{
|
||||
if (pa) {
|
||||
ListBase modifiers;
|
||||
BLI_listbase_clear(&modifiers);
|
||||
|
||||
psys_particle_on_emitter(ctx->sim.psmd, part->from, pa->num, pa->num_dmcache, pa->fuv, pa->foffset,
|
||||
par_co, NULL, NULL, NULL, par_orco, NULL);
|
||||
|
||||
psys_apply_child_modifiers(ctx, &modifiers, cpa, &ptex, orco, ornor, hairmat, child_keys, par, par_orco);
|
||||
}
|
||||
else
|
||||
zero_v3(par_orco);
|
||||
}
|
||||
|
||||
/* Hide virtual parents */
|
||||
|
|
Loading…
Reference in New Issue