fix [#26600] TexturedSolid + Curve: Specular affecting other materials
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 13:37:50 +0000 (13:37 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 13:37:50 +0000 (13:37 +0000)
source/blender/editors/space_view3d/drawmesh.c

index 6c5f093d6f18a4fe5bb17716954fa6aa67f231ba..d062ca8e25fbc606a48d6d1f82a6fc9c525ceb78 100644 (file)
@@ -328,6 +328,7 @@ static int set_draw_settings_cached(int clearcache, int textured, MTFace *texfac
 
                        glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, spec);
                        glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+                       glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, CLAMPIS(ma->har, 0, 128));
                        glEnable(GL_LIGHTING);
                        glEnable(GL_COLOR_MATERIAL);
                }