Forgotten to add this on last commit. This would cause dyntopo to always

refresh all its nodes if show diffuse was on.
This commit is contained in:
Antony Riakiotakis
2014-04-03 04:03:46 +03:00
parent dd54b721c6
commit c6d85407d4

View File

@@ -2082,6 +2082,8 @@ void GPU_update_bmesh_pbvh_buffers(GPU_PBVH_Buffers *buffers,
GPU_material_diffuse_get(f->mat_nr + 1, diffuse_color); GPU_material_diffuse_get(f->mat_nr + 1, diffuse_color);
} }
copy_v4_v4(buffers->diffuse_color, diffuse_color);
/* Initialize vertex buffer */ /* Initialize vertex buffer */
glBindBufferARB(GL_ARRAY_BUFFER_ARB, buffers->vert_buf); glBindBufferARB(GL_ARRAY_BUFFER_ARB, buffers->vert_buf);
glBufferDataARB(GL_ARRAY_BUFFER_ARB, glBufferDataARB(GL_ARRAY_BUFFER_ARB,