Bugfix #3288
authorTon Roosendaal <ton@blender.org>
Thu, 3 Nov 2005 18:58:35 +0000 (18:58 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 3 Nov 2005 18:58:35 +0000 (18:58 +0000)
If a Mesh was "Auto Smooth", it was drawing as smooth in editmode, and
not as smooth in Object mode. Should be consistant.
Better even would be draw autosmooth info, but that's derivedmesh magic now!

source/blender/blenkernel/intern/DerivedMesh.c

index dba4679fb983cc82e4d1a70a434337e1829a4fcc..d06ff068deb439666ea4c12d647282722efaef65 100644 (file)
@@ -275,7 +275,7 @@ static void meshDM_drawFacesSolid(DerivedMesh *dm, int (*setMaterial)(int))
                        
                new_glmode = mface->v4?GL_QUADS:GL_TRIANGLES;
                new_matnr = mface->mat_nr+1;
-               new_shademodel = (!(me->flag&ME_AUTOSMOOTH) && (mface->flag & ME_SMOOTH))?GL_SMOOTH:GL_FLAT;
+               new_shademodel = (mface->flag & ME_SMOOTH)?GL_SMOOTH:GL_FLAT;
                
                if (new_glmode!=glmode || new_matnr!=matnr || new_shademodel!=shademodel) {
                        glEnd();