Fix #28935: Material display error VBO + Texture Solid + Modifier
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Nov 2011 12:43:45 +0000 (12:43 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Nov 2011 12:43:45 +0000 (12:43 +0000)
source/blender/blenkernel/intern/subsurf_ccg.c

index 115b26452e148cccb6cca7c095314a20348fa6ff..986e0e2b55287bffe6560e521f69ac216f79dc3d 100644 (file)
@@ -1598,6 +1598,9 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm,
        if(!mcol)
                mcol = dm->getFaceDataArray(dm, CD_MCOL);
 
+       if(!mcol)
+               mcol = dm->getFaceDataArray(dm, CD_TEXTURE_MCOL);
+
        totface = ccgSubSurf_getNumFaces(ss);
        for(i = 0; i < totface; i++) {
                CCGFace *f = ccgdm->faceMap[i].face;