From fa3fe2ee102afeb3d1fdc613f2207bbbe38d92bb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Dec 2015 18:14:22 +1100 Subject: Cleanup: math lib naming Distinguish between line / line_segment --- source/blender/editors/physics/particle_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/physics/particle_edit.c') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 32cd1f7a1ce..64ad3a100cc 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -3416,7 +3416,7 @@ static int particle_intersect_dm(Scene *scene, Object *ob, DerivedMesh *dm, } } else { - if (isect_line_tri_v3(co1, co2, v1, v2, v3, &cur_d, cur_uv)) { + if (isect_line_segment_tri_v3(co1, co2, v1, v2, v3, &cur_d, cur_uv)) { if (cur_d<*min_d) { *min_d=cur_d; min_w[0] = 1.0f - cur_uv[0] - cur_uv[1]; @@ -3430,7 +3430,7 @@ static int particle_intersect_dm(Scene *scene, Object *ob, DerivedMesh *dm, } } if (mface->v4) { - if (isect_line_tri_v3(co1, co2, v1, v3, v4, &cur_d, cur_uv)) { + if (isect_line_segment_tri_v3(co1, co2, v1, v3, v4, &cur_d, cur_uv)) { if (cur_d<*min_d) { *min_d=cur_d; min_w[0] = 1.0f - cur_uv[0] - cur_uv[1]; -- cgit v1.2.3