[Bf-blender-cvs] [2b892c6c214] master: Fix T61988, Bevel miter on small scale.
Howard Trickey
noreply at git.blender.org
Wed Feb 27 17:52:42 CET 2019
Commit: 2b892c6c2146144b09c8097669bdde39ec2c2ab8
Author: Howard Trickey
Date: Wed Feb 27 11:51:24 2019 -0500
Branches: master
https://developer.blender.org/rB2b892c6c2146144b09c8097669bdde39ec2c2ab8
Fix T61988, Bevel miter on small scale.
Take two at fix, hopefully without unintended commits
to submodules this time.
===================================================================
M source/blender/bmesh/tools/bmesh_bevel.c
===================================================================
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index 7ddecc8a7b6..cd720630a61 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -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)
More information about the Bf-blender-cvs
mailing list