Fix T46899 sculpt normals not getting updated after exiting sculpt mode.

Habit is a bad thing: Update polys, not tessfaces.
This commit is contained in:
Antonis Ryakiotakis 2015-12-03 00:13:45 +01:00
parent 98b95fb325
commit a491277f5d
Notes: blender-bot 2023-10-18 15:23:11 +02:00
Referenced by issue #46899, Getting out of sculpt mode does not update (derived) mesh normals anymore
1 changed files with 1 additions and 1 deletions

View File

@ -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);