Multires: Don't force smooth shading
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 22 Feb 2019 13:45:32 +0000 (14:45 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 22 Feb 2019 13:45:32 +0000 (14:45 +0100)
There is still work needed to be done from multires side to fully
support smooth shading. So can't just always have smooth shading.

Roll back to a proper code in GPU side, the rest will be handled
from CCG side.

source/blender/gpu/intern/gpu_buffers.c

index 85459c4..242882b 100644 (file)
@@ -504,7 +504,7 @@ void GPU_pbvh_grid_buffers_update(
        bool empty_mask = true;
        int i, j, k, x, y;
 
-       const bool smooth = true;//grid_flag_mats[grid_indices[0]].flag & ME_SMOOTH;
+       const bool smooth = grid_flag_mats[grid_indices[0]].flag & ME_SMOOTH;
 
        /* Build VBO */
        const int has_mask = key->has_mask;