diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-19 10:54:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-19 11:00:19 +0300 |
commit | eb05e87e16147554284d7b8d6b1a7184f9310719 (patch) | |
tree | 6e796fb5a93cb36ad930fe30e9f1d72dbf631e5e /source/blender/blenkernel/intern/cdderivedmesh.c | |
parent | da34136de1093e7da9bc10881d11e2f553f4d8d0 (diff) |
BMesh: editmode drawing set every faces material
Check for changes in material (as other drawing code already does)
Diffstat (limited to 'source/blender/blenkernel/intern/cdderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index e4a5dbb9d24..3feea12f017 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -793,7 +793,7 @@ static void cdDM_drawMappedFaces(DerivedMesh *dm, else { /* we need to check if the next material changes */ int next_actualFace = dm->drawObject->triangle_to_mface[0]; - int prev_mat_nr = -1; + short prev_mat_nr = -1; for (i = 0; i < tottri; i++) { //int actualFace = dm->drawObject->triangle_to_mface[i]; |