diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-03 05:03:46 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-03 05:03:46 +0400 |
commit | c6d85407d47c201e3af6fe12ed2b204a5e5fc0a0 (patch) | |
tree | 543451424894c157929b2bd1681657b02033407e /source/blender/gpu/intern | |
parent | dd54b721c6ff3e0614f771e76fb1ccfbb78f6d67 (diff) |
Forgotten to add this on last commit. This would cause dyntopo to always
refresh all its nodes if show diffuse was on.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 28e117a0ff9..e01fa510dfb 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -2082,6 +2082,8 @@ void GPU_update_bmesh_pbvh_buffers(GPU_PBVH_Buffers *buffers, GPU_material_diffuse_get(f->mat_nr + 1, diffuse_color); } + copy_v4_v4(buffers->diffuse_color, diffuse_color); + /* Initialize vertex buffer */ glBindBufferARB(GL_ARRAY_BUFFER_ARB, buffers->vert_buf); glBufferDataARB(GL_ARRAY_BUFFER_ARB, |