[Bf-blender-cvs] [95a8e73d400] master: Fix copy-paste error in recent particles fix
Sergey Sharybin
noreply at git.blender.org
Fri Sep 15 08:35:38 CEST 2017
Commit: 95a8e73d40004461aa17a60695c29106749325ec
Author: Sergey Sharybin
Date: Fri Sep 15 11:35:00 2017 +0500
Branches: master
https://developer.blender.org/rB95a8e73d40004461aa17a60695c29106749325ec
Fix copy-paste error in recent particles fix
Was intersecting same triangle twice.
===================================================================
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 1ef4d005f0d..9a7980827ad 100644
--- a/source/blender/blenkernel/intern/particle_distribute.c
+++ b/source/blender/blenkernel/intern/particle_distribute.c
@@ -242,7 +242,7 @@ static void distribute_grid(DerivedMesh *dm, ParticleSystem *psys)
if (isect_ray_tri_watertight_v3(co1,
&isect_precalc,
- v1, v2, v3,
+ v1, v3, v4,
&lambda, NULL)) {
if (from==PART_FROM_FACE)
(pa+(int)(lambda*size[a])*a0mul)->flag &= ~PARS_UNEXIST;
More information about the Bf-blender-cvs
mailing list