svn merge ^/trunk/blender -r42722:42742
[blender.git] / source / blender / render / intern / source / render_texture.c
index f99920500522dc267a2bca5da7bfacd708b07695..849e0ef428a0f3684dafd41be796a679dff13d07 100644 (file)
@@ -3658,7 +3658,7 @@ void RE_sample_material_color(Material *mat, float color[3], float *alpha, const
 
        /* Get face data        */
        mvert = orcoDm->getVertArray(orcoDm);
-       mface = orcoDm->getFaceArray(orcoDm);
+       mface = orcoDm->getTessFaceArray(orcoDm);
 
        if (!mvert || !mface || !mat) return;
        v1=mface[face_index].v1, v2=mface[face_index].v2, v3=mface[face_index].v3;