From cd8581af8ebe236fe59d659ef27c31f139f038f7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Aug 2015 12:18:58 +1000 Subject: [PATCH] Fix T45706: Axis aligned tri-tri intersection --- source/blender/blenlib/intern/math_geom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index e05cd7c300b..197a50d3ab7 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -1522,7 +1522,7 @@ bool isect_tri_tri_epsilon_v3( isect_co, isect_co_other, tri_pair[t][j], tri_pair[t][j_prev], ix_span, ix_tri, - epsilon) == 2) + epsilon) != 0) { const float edge_fac = line_point_factor_v3(ix_tri, tri_pair[t][j], tri_pair[t][j_prev]); if (edge_fac >= -epsilon && edge_fac <= 1.0f + epsilon) {