diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-12-03 02:13:45 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-12-03 02:14:09 +0300 |
commit | a491277f5d93875255e26abea1ad752912c04ddf (patch) | |
tree | 3d388f57b6a1133acd2fb129af5d51b4358770d1 | |
parent | 98b95fb325042a39d7266464e76fa5ff3a972863 (diff) |
Fix T46899 sculpt normals not getting updated after exiting sculpt mode.
Habit is a bad thing: Update polys, not tessfaces.
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index d8aece8c05b..1acb9ad3d20 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -445,7 +445,7 @@ static void cdDM_drawFacesSolid( if (cddm->pbvh) { if (cddm->pbvh_draw && BKE_pbvh_has_faces(cddm->pbvh)) { - float (*face_nors)[3] = CustomData_get_layer(&dm->faceData, CD_NORMAL); + float (*face_nors)[3] = CustomData_get_layer(&dm->polyData, CD_NORMAL); BKE_pbvh_draw(cddm->pbvh, partial_redraw_planes, face_nors, setMaterial, false, false); |