Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 23:27:02 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 23:27:02 +0400
commit84232f8d5a754ece4e73eae6f38c600c16fd8278 (patch)
treef47c75900bb6df19992b80d8463cfd64ed7a2b6a /source/blender/editors/space_view3d/drawmesh.c
parentdde8c104322a5a0351b595ecd8c6cdefcdb18211 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_view3d/drawmesh.c')
-rw-r--r--source/blender/editors/space_view3d/drawmesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c
index 88f0e86cddb..17648dc8861 100644
--- a/source/blender/editors/space_view3d/drawmesh.c
+++ b/source/blender/editors/space_view3d/drawmesh.c
@@ -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;