Fix #35622: applying modifiers did not give correct smooth shading normals

after recent changes to avoid computing unneeded normals.
This commit is contained in:
Brecht Van Lommel
2013-06-04 16:02:54 +00:00
parent d7bba8bc8b
commit 855cfc210e

View File

@@ -491,6 +491,8 @@ void DM_to_mesh(DerivedMesh *dm, Mesh *me, Object *ob, CustomDataMask mask)
CustomData_reset(&tmp.ldata);
CustomData_reset(&tmp.pdata);
DM_ensure_normals(dm);
totvert = tmp.totvert = dm->getNumVerts(dm);
totedge = tmp.totedge = dm->getNumEdges(dm);
totloop = tmp.totloop = dm->getNumLoops(dm);