Fix T47604: Sculpt + Modifier undo gives invalid normals
authorCampbell Barton <ideasman42@gmail.com>
Mon, 29 Feb 2016 09:37:19 +0000 (20:37 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 29 Feb 2016 09:37:19 +0000 (20:37 +1100)
source/blender/editors/sculpt_paint/sculpt_undo.c

index 3b7cd2fb77d78b18b38c200799ba6dba437eaa48..ceefda99002924466c773f0b673f0fc09387aa83 100644 (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;