svn merge ^/trunk/blender -r42778:42839
[blender.git] / source / blender / render / intern / source / strand.c
index 89f74418563f637a359f6e0cfb8f1e377362f6ea..cdc185160d5cc7a19481bee8a247575df581f933 100644 (file)
@@ -974,7 +974,7 @@ StrandSurface *cache_strand_surface(Render *re, ObjectRen *obr, DerivedMesh *dm,
        int a, totvert, totface;
 
        totvert= dm->getNumVerts(dm);
-       totface= dm->getNumFaces(dm);
+       totface= dm->getNumTessFaces(dm);
 
        for(mesh=re->strandsurface.first; mesh; mesh=mesh->next)
                if(mesh->obr.ob == obr->ob && mesh->obr.par == obr->par
@@ -1008,7 +1008,7 @@ StrandSurface *cache_strand_surface(Render *re, ObjectRen *obr, DerivedMesh *dm,
                mul_m4_v3(mat, co[a]);
        }
 
-       mface= dm->getFaceArray(dm);
+       mface= dm->getTessFaceArray(dm);
        for(a=0; a<mesh->totface; a++, mface++) {
                mesh->face[a][0]= mface->v1;
                mesh->face[a][1]= mface->v2;