diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-21 08:24:30 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-21 08:24:30 +0400 |
commit | 88a2be1846d3cdca5c0a0f0dc68baad933a9f680 (patch) | |
tree | 232c1fa6420619f3da44853eb814059cbb9e3596 /source/blender/blenlib/intern/pbvh.c | |
parent | a6dc47b0cae6bde63dfb3ec77cdae2d77a3e8b26 (diff) |
Another fix for non-VBO flat-shading in sculpt mode, this time for non-multires meshes.
As with multires, this change calculates face normals rather than
using vertex normals when the node is flat-shaded.
Flat-shading with VBO on non-multires meshes is still wrong, but
fixing that would require larger changes to our vertex buffers.
Diffstat (limited to 'source/blender/blenlib/intern/pbvh.c')
-rw-r--r-- | source/blender/blenlib/intern/pbvh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c index 0e3cc51dea5..56f0dff2847 100644 --- a/source/blender/blenlib/intern/pbvh.c +++ b/source/blender/blenlib/intern/pbvh.c @@ -1087,7 +1087,8 @@ static void pbvh_update_draw_buffers(PBVH *bvh, PBVHNode **nodes, int totnode, i bvh->verts, node->vert_indices, node->uniq_verts + - node->face_verts); + node->face_verts, + smooth); } node->flag &= ~PBVH_UpdateDrawBuffers; |