Commit: c6d85407d47c201e3af6fe12ed2b204a5e5fc0a0
Author: Antony Riakiotakis
Date:   Thu Apr 3 04:03:46 2014 +0300
https://developer.blender.org/rBc6d85407d47c201e3af6fe12ed2b204a5e5fc0a0

Forgotten to add this on last commit. This would cause dyntopo to always
refresh all its nodes if show diffuse was on.

===================================================================

M       source/blender/gpu/intern/gpu_buffers.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_buffers.c 
b/source/blender/gpu/intern/gpu_buffers.c
index 28e117a..e01fa51 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,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to