fix [#30995] Wavefront obj. file export/import issue with splited edge

This commit is contained in:
Campbell Barton
2012-04-18 09:04:07 +00:00
parent 6d346724d3
commit ddbb4db1d3

View File

@@ -816,12 +816,9 @@ void ED_mesh_update(Mesh *mesh, bContext *C, int calc_edges, int calc_tessface)
/* would only be converting back again, don't bother */
tessface_input = TRUE;
/* it also happens that converting the faces calculates edges, skip this */
calc_edges = FALSE;
}
if (calc_edges || (mesh->totpoly && mesh->totedge == 0))
if (calc_edges || ((mesh->totpoly || mesh->totface) && mesh->totedge == 0))
BKE_mesh_calc_edges(mesh, calc_edges);
if (calc_tessface) {