diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-30 21:59:07 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-30 22:04:54 +0300 |
commit | cb1994805373c627c4aaf803dc9bffa0a7d24fcb (patch) | |
tree | 1ea565099c7e31779b2667bed0f8ead56aa7b798 /source/blender/blenkernel | |
parent | 756ab5ee2cc2c530e267f7701e953664171907d2 (diff) |
Fix T47983: Particles - Emit from Verts emits double on one vert.
When non-random, particle distribution used a small start offset (to avoid
zero-weight faces), which is fine with "continuous" entities like faces, but not
for discrete ones like vertices - in that case it was generating some undesired
"jump" over a few verts in case step was small enough
(i.e. total number of verts/particles was big enough).
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/particle_distribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_distribute.c b/source/blender/blenkernel/intern/particle_distribute.c index 0f1f24091e8..ccbc239f0d6 100644 --- a/source/blender/blenkernel/intern/particle_distribute.c +++ b/source/blender/blenkernel/intern/particle_distribute.c @@ -1030,7 +1030,7 @@ static int psys_thread_context_init_distribute(ParticleThreadContext *ctx, Parti double step, pos; step= (totpart < 2) ? 0.5 : 1.0/(double)totpart; - pos= 1e-6; /* tiny offset to avoid zero weight face */ + pos = (from == PART_FROM_VERT) ? 0.0 : 1e-6; /* tiny offset to avoid zero weight face */ i= 0; for (p=0; p<totpart; p++, pos+=step) { |