fix make face sometimes crossing edges

This commit is contained in:
Howard Trickey 2011-08-23 13:25:00 +00:00
parent c3819bf780
commit 2fcb0eda01

@ -1111,7 +1111,8 @@ void bmesh_edgenet_prepare(BMesh *bm, BMOperator *op)
else v4 = edges2[i]->v1;
}
if (len_v3v3(v1->co, v3->co) > len_v3v3(v1->co, v4->co)) {
if (len_v3v3(v1->co, v3->co) + len_v3v3(v2->co, v4->co) >
len_v3v3(v1->co, v4->co) + len_v3v3(v2->co, v3->co)) {
BMVert *v;
v = v3;
v3 = v4;