fix [#30101] Vertex colors disappear after leaving edit mode
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Feb 2012 11:52:44 +0000 (11:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Feb 2012 11:52:44 +0000 (11:52 +0000)
commitb228685e9296cf6d7b25671003067f2d877345a3
treeafdf937cdc3b6586e2a8f38bde6278fdcc97ab12
parenta5eb673b4dd1a8cb0946b9e999efbc9cbc7a00ee
fix [#30101] Vertex colors disappear after leaving edit mode

this commit makes vertex paint check if it needs to rebuild the modifier stack when painting.
- when painting with no modifiers, do partial updates from polys to tessfaces while painting, skip re-tesselation.
- when painting onto a modified mesh, dont bother adjusting tessface colors - since the modifier stack will do this anyway.

both cases should be faster then before.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/mesh.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/space_view3d/drawobject.c