Commit: e4b1b0088413cb912f7d8072935305e9100f426f
Author: Bastien Montagne
Date:   Wed Mar 30 20:59:07 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rBe4b1b0088413cb912f7d8072935305e9100f426f

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).

===================================================================

M       source/blender/blenkernel/intern/particle_distribute.c

===================================================================

diff --git a/source/blender/blenkernel/intern/particle_distribute.c 
b/source/blender/blenkernel/intern/particle_distribute.c
index 2527ff5..1c4099f 100644
--- a/source/blender/blenkernel/intern/particle_distribute.c
+++ b/source/blender/blenkernel/intern/particle_distribute.c
@@ -1014,7 +1014,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) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to