forked from bartvdbraak/blender
Fix for crash in Mesh EditMode "Join triangles" (JKEY). Found & code
provided by Campbell Barton, thanks mate! :) Note; this tool gives quickly bad results... also errors printed in the give_quad_verts call. Who likes to attack this!
This commit is contained in:
parent
799d7e3f98
commit
c68c3c253f
@ -2307,6 +2307,7 @@ void join_triangles(void)
|
||||
1-----2 1-----2
|
||||
*/
|
||||
/* make new faces */
|
||||
if(v1 && v2 && v3 && v4) {
|
||||
if( convex(v1->co, v2->co, v3->co, v4->co) ) {
|
||||
if(exist_face(v1, v2, v3, v4)==0) {
|
||||
w = addfacelist(v1, v2, v3, v4, efaa[0], NULL); /* seam edge may get broken */
|
||||
@ -2327,6 +2328,7 @@ void join_triangles(void)
|
||||
} /* endif test convex */
|
||||
}
|
||||
}
|
||||
}
|
||||
eed= nexted;
|
||||
}
|
||||
free_tagged_edgelist(em->edges.first);
|
||||
|
Loading…
Reference in New Issue
Block a user