diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-15 10:14:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-15 10:16:41 +0300 |
commit | fa3fe2ee102afeb3d1fdc613f2207bbbe38d92bb (patch) | |
tree | 155322b1ffbe57745571b696904225793541b19e /source/blender/blenkernel/intern/particle_distribute.c | |
parent | a7c7ae5bf76f9b9036289fa38c2c2ad11f5e2986 (diff) |
Cleanup: math lib naming
Distinguish between line / line_segment
Diffstat (limited to 'source/blender/blenkernel/intern/particle_distribute.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle_distribute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/particle_distribute.c b/source/blender/blenkernel/intern/particle_distribute.c index 87bc355894d..0c7d85967f3 100644 --- a/source/blender/blenkernel/intern/particle_distribute.c +++ b/source/blender/blenkernel/intern/particle_distribute.c @@ -220,7 +220,7 @@ static void distribute_grid(DerivedMesh *dm, ParticleSystem *psys) copy_v3_v3(v2, mvert[mface->v2].co); copy_v3_v3(v3, mvert[mface->v3].co); - if (isect_axial_line_tri_v3(a, co1, co2, v2, v3, v1, &lambda)) { + if (isect_axial_line_segment_tri_v3(a, co1, co2, v2, v3, v1, &lambda)) { if (from==PART_FROM_FACE) (pa+(int)(lambda*size[a])*a0mul)->flag &= ~PARS_UNEXIST; else /* store number of intersections */ @@ -229,7 +229,7 @@ static void distribute_grid(DerivedMesh *dm, ParticleSystem *psys) else if (mface->v4) { copy_v3_v3(v4, mvert[mface->v4].co); - if (isect_axial_line_tri_v3(a, co1, co2, v4, v1, v3, &lambda)) { + if (isect_axial_line_segment_tri_v3(a, co1, co2, v4, v1, v3, &lambda)) { if (from==PART_FROM_FACE) (pa+(int)(lambda*size[a])*a0mul)->flag &= ~PARS_UNEXIST; else |