diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-05-15 19:51:17 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-05-15 19:51:17 +0400 |
commit | b0ced3ef832be68e0f2939d7df47fe0f08507d82 (patch) | |
tree | c5bc59787a8374577a244514bc7d4d715b61169e /source/blender | |
parent | ca3b61f5786252f9898e389aa330619b1b96a7dd (diff) |
Fix for [#27131] particle system BUG - one particle generated twice at vertex (e.g. 9 particles generated at 8 locations)
* The tiny offset value used in particle distribution code was actually too small, so that floating point errors got the best of the calculations.
Diffstat (limited to 'source/blender')
-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 c2aa297b174..6b1540d7d53 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -1250,7 +1250,7 @@ static int distribute_threads_init_data(ParticleThread *threads, Scene *scene, D double step, pos; step= (totpart < 2) ? 0.5 : 1.0/(double)totpart; - pos= 1e-16; /* tiny offset to avoid zero weight face */ + pos= 1e-6; /* tiny offset to avoid zero weight face */ i= 0; for(p=0; p<totpart; p++, pos+=step) { |