BMesh: avoid redundant normalize comparing angles
authorCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jul 2014 04:22:15 +0000 (14:22 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jul 2014 04:22:15 +0000 (14:22 +1000)
source/blender/bmesh/tools/bmesh_bevel.c

index c583464ab6de2c4e83f03c94f9b5c9fa528abd1b..634ac510e6c9bdf3b5a1a15ad264b858d17e220a 100644 (file)
@@ -1719,7 +1719,7 @@ static BoundVert *pipe_test(BevVert *bv)
                        sub_v3_v3v3(dir3, BM_edge_other_vert(v3->ebev->e, bv->v)->co, bv->v->co);
                        normalize_v3(dir1);
                        normalize_v3(dir3);
-                       if (angle_v3v3(dir1, dir3) < BEVEL_EPSILON_BIG) {
+                       if (angle_normalized_v3v3(dir1, dir3) < BEVEL_EPSILON_BIG) {
                                epipe =  v1->ebev;
                                break;
                        }