Merged changes in the trunk up to revision 42021.
[blender.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index eaf2afdcfb652292ffadfb943d2e7ec9fda8036a..de0bf90e79bc197a98a42f2a5e1f7a7b53a9936f 100644 (file)
@@ -945,7 +945,7 @@ static void cdDM_drawMappedFaces(DerivedMesh *dm, int (*setDrawOptions)(void *us
                        }
                        if(setDrawOptions == NULL) {
                                /* just draw the entire face array */
-                               glDrawArrays(GL_TRIANGLES, 0, (tottri-1) * 3);
+                               glDrawArrays(GL_TRIANGLES, 0, (tottri) * 3);
                        }
                        else {
                                /* we need to check if the next material changes */