diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-29 12:37:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-29 12:37:19 +0300 |
commit | ed22ab3ce8c8a62999881335b99233973e65f0f5 (patch) | |
tree | 43ddb19fd6629e1a29576bc35ab4cfff6cd1daa2 /source/blender/editors | |
parent | 298aac33ccbdb9175168de4b30d6297b37c27857 (diff) |
Fix T47604: Sculpt + Modifier undo gives invalid normals
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 3b7cd2fb77d..ceefda99002 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; |