Fix #28347: VBO's highlights wrong faces when Mirror modifier is in use
[blender-staging.git] / source / blender / blenkernel / intern / DerivedMesh.c
index c84bcaabbd3257035811d3293aab3bc31d91b78e..ff7f2586767b30c017350412f3aec58b6f223c7f 100644 (file)
@@ -637,7 +637,8 @@ static void emDM_foreachMappedFaceCenter(DerivedMesh *dm, void (*func)(void *use
 }
 
 /* note, material function is ignored for now. */
-static void emDM_drawMappedFaces(DerivedMesh *dm, int (*setDrawOptions)(void *userData, int index, int *drawSmooth_r), void *userData, int UNUSED(useColors), int (*setMaterial)(int, void *attribs))
+static void emDM_drawMappedFaces(DerivedMesh *dm, int (*setDrawOptions)(void *userData, int index, int *drawSmooth_r), void *userData, int UNUSED(useColors), int (*setMaterial)(int, void *attribs),
+                       int (*compareDrawOptions)(void *userData, int cur_index, int next_index))
 {
        EditMeshDerivedMesh *emdm= (EditMeshDerivedMesh*) dm;
        EditFace *efa;
@@ -645,6 +646,9 @@ static void emDM_drawMappedFaces(DerivedMesh *dm, int (*setDrawOptions)(void *us
        
        (void)setMaterial; /* unused */
 
+       /* currently unused -- each original face is handled separately */
+       (void)compareDrawOptions;
+
        if (emdm->vertexCos) {
                EditVert *eve;