Revert 7955cb78d it causes GPU_pbvh_buffers_diffuse_changed to always

return false, causing update of all pbvh nodes all the time.
This commit is contained in:
Antony Riakiotakis
2014-04-01 20:17:23 +03:00
parent 3ed49a810d
commit bfe29e0ef7

View File

@@ -1442,7 +1442,7 @@ void GPU_update_mesh_pbvh_buffers(GPU_PBVH_Buffers *buffers, MVert *mvert,
int i, j, k;
buffers->vmask = vmask;
buffers->show_diffuse_color = (vmask == NULL) || show_diffuse_color;
buffers->show_diffuse_color = show_diffuse_color;
if (buffers->vert_buf) {
int totelem = (buffers->smooth ? totvert : (buffers->tot_tri * 3));
@@ -1657,7 +1657,7 @@ void GPU_update_grid_pbvh_buffers(GPU_PBVH_Buffers *buffers, CCGElem **grids,
VertexBufferFormat *vert_data;
int i, j, k, x, y;
buffers->show_diffuse_color = (key->has_mask == false) || show_diffuse_color;
buffers->show_diffuse_color = show_diffuse_color;
/* Build VBO */
if (buffers->vert_buf) {