diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-25 19:30:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-25 19:36:14 +0300 |
commit | 1ea410c559b30ab76ff512dbb04ed110b293725a (patch) | |
tree | 05203506bb42786c88a464a41c1e27e1a03eb6cd /source/blender | |
parent | 1870e166deaa4ced1bb5226e97e037db10dbd06c (diff) |
OpenSubdiv: Fix opensubdiv option obscuring the interface
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index 04bcd366c3f..e876bf43809 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -2699,6 +2699,7 @@ static void ccgDM_drawFacesSolid(DerivedMesh *dm, float (*partial_redraw_planes) num_draw_patches); } } + glShadeModel(GL_SMOOTH); return; } #endif @@ -2805,6 +2806,7 @@ static void ccgDM_drawMappedFacesGLSL(DerivedMesh *dm, num_draw_patches); } } + glShadeModel(GL_SMOOTH); return; } #endif @@ -3214,6 +3216,7 @@ static void ccgDM_drawMappedFacesMat(DerivedMesh *dm, glShadeModel(draw_smooth ? GL_SMOOTH : GL_FLAT); setMaterial(userData, new_matnr, &gattribs); ccgSubSurf_drawGLMesh(ss, true, -1, -1); + glShadeModel(GL_SMOOTH); return; } #endif @@ -3479,6 +3482,7 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm, num_draw_patches += num_patches; } } + glShadeModel(GL_SMOOTH); return; } #endif @@ -3678,6 +3682,7 @@ static void ccgDM_drawMappedFaces(DerivedMesh *dm, glShadeModel(draw_smooth ? GL_SMOOTH : GL_FLAT); ccgSubSurf_drawGLMesh(ss, true, -1, -1); } + glShadeModel(GL_SMOOTH); return; } #endif |