Blender Git Commit Log

Git Commits -> Revision f139377

Revision f139377 by Bastien Montagne (master)
October 29, 2012, 16:26 (GMT)
Complete fix for [#33002] Wrong vertex color.

Appart from the color glitch, there was several problems with vpaint:
* "fast_update" mode was never on, because of wrong testing code;
* drawing refresh during stroke in "fast_update" (i.e. no dm rebuild) mode was broken in VBO mode, because updated (tess data) mcol wasn't moved to colors GPUBuffer.

Solved the later point by adding a new DM_DIRTY_MCOL_UPDATE_DRAW flag to DerivedMesh dirty var, which is set each time vpaint stroke directly update me->mcol, and forces GPU_color_setup() to refresh the gpu's colors buffer.

Also got rid of the uggly GPU_color3_upload(), which basically did the same thing, but with an additional intermediate buffer !

Commit Details:

Full Hash: f139377a1a096582e5a7367696f307b1de7b8026
SVN Revision: 51737
Parent Commit: c75b6c8
Lines Changed: +69, -92

5 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+3, -19) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+52, -28) (Diff)
/source/blender/gpu/GPU_buffers.h (+0, -2) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+9, -43) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021