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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-19 07:10:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-19 07:10:11 +0400
commit445003973434da55614e90fcee2f99f1765afd8f (patch)
tree0186dfc93e285db1bde059f93e78f48b37835b3d /source/blender/blenkernel/intern/editderivedmesh.c
parentf75bf20c817d9e09b23513d007bc8cc69ff00d48 (diff)
Change texface draw to always use glShadeModel(GL_SMOOTH), with texface draw.
without this each face would get a solid color, this is the same method used in object mode. also copy BLI_array.h fix from bmesh branch.
Diffstat (limited to 'source/blender/blenkernel/intern/editderivedmesh.c')
-rw-r--r--source/blender/blenkernel/intern/editderivedmesh.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c
index bb1d20f0187..62f11eb2631 100644
--- a/source/blender/blenkernel/intern/editderivedmesh.c
+++ b/source/blender/blenkernel/intern/editderivedmesh.c
@@ -488,9 +488,6 @@ static void emDM_drawFacesTex_common(
cp= (unsigned char*)mcol;
}
}
- else {
- glShadeModel(drawSmooth?GL_SMOOTH:GL_FLAT);
- }
glBegin(efa->v4?GL_QUADS:GL_TRIANGLES);
if (!drawSmooth) {
@@ -564,9 +561,6 @@ static void emDM_drawFacesTex_common(
cp= (unsigned char*)mcol;
}
}
- else {
- glShadeModel(drawSmooth?GL_SMOOTH:GL_FLAT);
- }
glBegin(efa->v4?GL_QUADS:GL_TRIANGLES);
if (!drawSmooth) {
@@ -617,6 +611,8 @@ static void emDM_drawFacesTex_common(
}
}
}
+
+ glShadeModel(GL_FLAT);
}
static void emDM_drawFacesTex(