Fix T61988, Bevel miter on small scale.

Take two at fix, hopefully without unintended commits
to submodules this time.
This commit is contained in:
Howard Trickey 2019-02-27 11:51:24 -05:00
parent 495216d2b8
commit 2b892c6c21
Notes: blender-bot 2023-02-14 06:45:14 +01:00
Referenced by issue #61988, Bevel mitering doens't work on small objects
1 changed files with 3 additions and 0 deletions

View File

@ -756,8 +756,11 @@ static int edges_angle_kind(EdgeHalf *e1, EdgeHalf *e2, BMVert *v)
v2 = BM_edge_other_vert(e2->e, v);
sub_v3_v3v3(dir1, v->co, v1->co);
sub_v3_v3v3(dir2, v->co, v2->co);
normalize_v3(dir1);
normalize_v3(dir2);
/* angles are in [0,pi]. need to compare cross product with normal to see if they are reflex */
cross_v3_v3v3(cross, dir1, dir2);
normalize_v3(cross);
if (e1->fnext)
no = e1->fnext->no;
else if (e2->fprev)