Fix #21189: vertex paint not working with mirror modifier.

This commit is contained in:
2010-03-12 12:09:58 +00:00
parent 1337867378
commit b0dd7b8c9c

View File

@@ -2125,7 +2125,7 @@ static void mesh_build_data(Scene *scene, Object *ob, CustomDataMask dataMask)
Object *obact = scene->basact?scene->basact->object:NULL;
int editing = paint_facesel_test(ob);
/* weight paint and face select need original indicies because of selection buffer drawing */
int needMapping = (ob==obact) && (editing || (ob->mode & OB_MODE_WEIGHT_PAINT) || editing);
int needMapping = (ob==obact) && (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT|OB_MODE_VERTEX_PAINT)) || editing);
clear_mesh_caches(ob);