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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user