Added extra security for fill faces. This function is being used for
importing now too, and it gets called for quite weird fill cases...
nevertheless, it should not crash!
This commit is contained in:
2006-07-01 10:02:26 +00:00
parent c33a8b65c0
commit 41b0a4a3ad

View File

@@ -1167,7 +1167,7 @@ void fill_mesh(void)
/* normals default pointing up */
efan= addfacelist(efa->v3->tmp.v, efa->v2->tmp.v,
efa->v1->tmp.v, 0, NULL, NULL);
EM_select_face(efan, 1);
if(efan) EM_select_face(efan, 1);
efa= efa->next;
}
}