OpenSubdiv: Use proper material index

This commit is contained in:
Sergey Sharybin 2016-07-25 15:17:37 +02:00
parent e7721f5ec8
commit 27db7ef81d
1 changed files with 1 additions and 1 deletions

View File

@ -3429,7 +3429,7 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm,
const int num_patches = (num_face_verts == 4) ? face_patches
: num_face_verts * grid_patches;
if (faceFlags) {
mat_nr = faceFlags[i].mat_nr + 1;
mat_nr = faceFlags[i].mat_nr;
}
else {
mat_nr = 0;