Fix copy-paste error in recent particles fix

Was intersecting same triangle twice.
This commit is contained in:
Sergey Sharybin 2017-09-15 11:35:00 +05:00
parent 17c00d222f
commit 7377b36660
1 changed files with 1 additions and 1 deletions

View File

@ -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;