forked from bartvdbraak/blender
Fix for: [#18354] Controlling with a texture the particles DENSITY parameter doesn't work.
If the density texture was taken into account with hair parent particles there were cases when there weren't any parents left to interpolate children from. Now a density texture is only taken into account for hair child particles.
This commit is contained in:
parent
445ca000bc
commit
30ce01f23f
@ -1616,7 +1616,7 @@ void initialize_particle(ParticleData *pa, int p, Object *ob, ParticleSystem *ps
|
||||
|
||||
NormalQuat(pa->r_rot);
|
||||
|
||||
if(part->distr!=PART_DISTR_GRID && part->from != PART_FROM_VERT){
|
||||
if(part->type!=PART_HAIR && part->distr!=PART_DISTR_GRID && part->from != PART_FROM_VERT){
|
||||
/* any unique random number will do (r_ave[0]) */
|
||||
if(ptex.exist < 0.5*(1.0+pa->r_ave[0]))
|
||||
pa->flag |= PARS_UNEXIST;
|
||||
|
Loading…
Reference in New Issue
Block a user