Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-25 16:37:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-25 16:37:50 +0300
commit21e0eff89712435708d4c8d931e988777a9f865a (patch)
treec002551afa4fb4e2bd4f5132c9a47839c3ad38d0 /source
parentf08a227f931e869eaead63476b71a5e1acfdd274 (diff)
fix [#26600] TexturedSolid + Curve: Specular affecting other materials
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/drawmesh.c1
1 files changed, 1 insertions, 0 deletions
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);
}