From 21e0eff89712435708d4c8d931e988777a9f865a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Mar 2011 13:37:50 +0000 Subject: [PATCH] fix [#26600] TexturedSolid + Curve: Specular affecting other materials --- source/blender/editors/space_view3d/drawmesh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c index 6c5f093d6f1..d062ca8e25f 100644 --- a/source/blender/editors/space_view3d/drawmesh.c +++ b/source/blender/editors/space_view3d/drawmesh.c @@ -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); }