diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-07-20 15:38:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-24 17:17:53 +0300 |
commit | 50c5108f79a15bdb10af5492612b511b9e9fd73d (patch) | |
tree | f893960cc69941ff262c345eeebd48f09a6aeb35 | |
parent | b3f0501e311b0cb744c36f5f1d1de41c784ea499 (diff) |
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.
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |