From 4b980e2f5758f842e84fe15a97b8d570ca080ac0 Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Sat, 20 Jul 2019 08:38:41 -0400 Subject: Fix T67196: bevel bad at a 3-edge bevel. The test for whether or not this was a "pipe" neglected to use fabsf() around a dot result. --- source/blender/bmesh/tools/bmesh_bevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh/tools') diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index c8338081443..90df3cd225e 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -3201,7 +3201,7 @@ static BoundVert *pipe_test(BevVert *bv) /* check face planes: all should have normals perpendicular to epipe */ for (e = &bv->edges[0]; e != &bv->edges[bv->edgecount]; e++) { if (e->fnext) { - if (dot_v3v3(dir1, e->fnext->no) > BEVEL_EPSILON_BIG) { + if (fabsf(dot_v3v3(dir1, e->fnext->no)) > BEVEL_EPSILON_BIG) { return NULL; } } -- cgit v1.2.3