diff options
author | Janne Karhu <jhkarh@gmail.com> | 2009-04-06 23:32:23 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2009-04-06 23:32:23 +0400 |
commit | 30ce01f23ffb2c926e5bbaaabf07c63611f7ea89 (patch) | |
tree | 23c1e7dfe2dd13bddc296d6137b276f2025d770c /source | |
parent | 445ca000bcdc732de3c1af8d98f726bd71b96423 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index 8720edf6c24..0ffdd11c37a 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -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; |