Merge with trunk r39000
[blender.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index 662c872b7f1cdf6a28c9bff287e2bfaa13a04257..57a155987d1279947c946e35e9d8365c8e367f4a 100644 (file)
@@ -881,7 +881,9 @@ static void cdDM_drawMappedFaces(DerivedMesh *dm, int (*setDrawOptions)(void *us
                                if(useColors && mc)
                                        cp = (unsigned char *)&mc[i * 4];
 
-                               glShadeModel(drawSmooth?GL_SMOOTH:GL_FLAT);
+                               /* dont set shading mode to flat because
+                               *  normals are used to change shading */
+                               glShadeModel(GL_SMOOTH);
                                glBegin(mf->v4?GL_QUADS:GL_TRIANGLES);
 
                                if (!drawSmooth) {