[Bf-blender-cvs] [b04d2f9] master: Fix T42927: Triangulate-beauty fails on quads
Campbell Barton
noreply at git.blender.org
Wed Dec 17 10:12:32 CET 2014
Commit: b04d2f99f20f44163756ee1f2ed8c1032de357d7
Author: Campbell Barton
Date: Wed Dec 17 10:09:47 2014 +0100
Branches: master
https://developer.blender.org/rBb04d2f99f20f44163756ee1f2ed8c1032de357d7
Fix T42927: Triangulate-beauty fails on quads
Regressions since 2.69.
===================================================================
M source/blender/bmesh/intern/bmesh_polygon.c
===================================================================
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c
index 302ed74..a0f2f8c 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.c
+++ b/source/blender/bmesh/intern/bmesh_polygon.c
@@ -814,7 +814,7 @@ void BM_face_triangulate(
cost = BM_verts_calc_rotate_beauty(l_v1->v, l_v2->v, l_v3->v, l_v4->v, 0, 0);
- if (cost < 0.0f) {
+ if (cost > 0.0f) {
l_v1 = l_v4;
//l_v2 = l_v2;
}
More information about the Bf-blender-cvs
mailing list