svn merge -r40166:40279 ^/trunk/blender
[blender.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index 13b6fef..9a974c6 100644 (file)
@@ -196,8 +196,8 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb)
                tag_update= ((Mesh*)ob->data)->id.us > 1;
 
                if(ss->modifiers_active) {
-                       Mesh *me= ob->data;
-                       mesh_calc_normals(me->mvert, me->totvert, me->mface, me->totface, NULL);
+                       Mesh *mesh= ob->data;
+                       mesh_calc_normals(mesh->mvert, mesh->totvert, mesh->mloop, mesh->mpoly, mesh->totloop, mesh->totpoly, NULL, NULL, 0, NULL, NULL);
 
                        free_sculptsession_deformMats(ss);
                        tag_update|= 1;