svn merge ^/trunk/blender -r41226:41227 .
[blender.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index 7656e51d2412f864157e025961091b76f38c615d..014cbff3e222fa8d618bc9080933431d8f83a760 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -198,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;