Fix #30664: Texturepaint color does not match texture color (3D View vs UV/Image Editor)

Another regression since bmesh merge which was caused getting CD_MTFACE from
polys datablock instead of face datablock.
This commit is contained in:
Sergey Sharybin
2012-04-10 19:27:02 +00:00
parent dde8c10432
commit 84232f8d5a

View File

@@ -468,7 +468,7 @@ static DMDrawOption draw_tface__set_draw(MTFace *tface, int has_mcol, int matnr)
}
static void add_tface_color_layer(DerivedMesh *dm)
{
MTFace *tface = DM_get_poly_data_layer(dm, CD_MTFACE);
MTFace *tface = DM_get_tessface_data_layer(dm, CD_MTFACE);
MFace *mface = dm->getTessFaceArray(dm);
MCol *finalCol;
int i, j;