Fix T47604: Sculpt + Modifier undo gives invalid normals

This commit is contained in:
Campbell Barton 2016-02-29 20:37:19 +11:00 committed by Sergey Sharybin
parent 28e4f8eb5c
commit 91457def83
1 changed files with 1 additions and 2 deletions

View File

@ -546,8 +546,7 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb)
if (ss->kb || ss->modifiers_active) {
Mesh *mesh = ob->data;
BKE_mesh_calc_normals_tessface(mesh->mvert, mesh->totvert,
mesh->mface, mesh->totface, NULL);
BKE_mesh_calc_normals(mesh);
BKE_sculptsession_free_deformMats(ss);
tag_update |= true;