[Bf-blender-cvs] [ed22ab3] master: Fix T47604: Sculpt + Modifier undo gives invalid normals

Campbell Barton noreply at git.blender.org
Mon Feb 29 10:46:36 CET 2016


Commit: ed22ab3ce8c8a62999881335b99233973e65f0f5
Author: Campbell Barton
Date:   Mon Feb 29 20:37:19 2016 +1100
Branches: master
https://developer.blender.org/rBed22ab3ce8c8a62999881335b99233973e65f0f5

Fix T47604: Sculpt + Modifier undo gives invalid normals

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_undo.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 3b7cd2f..ceefda9 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -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;




More information about the Bf-blender-cvs mailing list