Fix part of #34239: crash with cycles textured draw mode + dynamic topology sculpt.

This commit is contained in:
Brecht Van Lommel
2013-02-15 16:56:42 +00:00
parent 4eb90a9d1e
commit bc29b766df

View File

@@ -1431,7 +1431,7 @@ static void cdDM_drawMappedFacesMat(DerivedMesh *dm,
*/
if (cddm->pbvh && cddm->pbvh_draw && BKE_pbvh_type(cddm->pbvh) == PBVH_BMESH) {
if (dm->numTessFaceData) {
setMaterial(userData, 1, NULL);
setMaterial(userData, 1, &gattribs);
BKE_pbvh_draw(cddm->pbvh, NULL, NULL, NULL, FALSE);
}