Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/editderivedmesh.c
| Context not available. | |||||
| // dummylcol.r = dummylcol.g = dummylcol.b = dummylcol.a = 255; /* UNUSED */ | // dummylcol.r = dummylcol.g = dummylcol.b = dummylcol.a = 255; /* UNUSED */ | ||||
| /* always use smooth shading even for flat faces, else vertex colors wont interpolate */ | /* always use smooth shading even for flat faces, else vertex colors wont interpolate */ | ||||
| glShadeModel(GL_SMOOTH); | |||||
| BM_mesh_elem_index_ensure(bm, BM_FACE); | BM_mesh_elem_index_ensure(bm, BM_FACE); | ||||
| /* call again below is ok */ | /* call again below is ok */ | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| glShadeModel(GL_FLAT); | |||||
| } | } | ||||
| static void emDM_drawFacesTex( | static void emDM_drawFacesTex( | ||||
| Context not available. | |||||
| vertexNos = bmdm->vertexNos; | vertexNos = bmdm->vertexNos; | ||||
| polyNos = bmdm->polyNos; | polyNos = bmdm->polyNos; | ||||
| /* always use smooth shading even for flat faces, else vertex colors wont interpolate */ | |||||
| glShadeModel(GL_SMOOTH); | |||||
| BM_mesh_elem_index_ensure(bm, (BM_VERT | BM_FACE) | (lnors ? BM_LOOP : 0)); | BM_mesh_elem_index_ensure(bm, (BM_VERT | BM_FACE) | (lnors ? BM_LOOP : 0)); | ||||
| for (i = 0; i < em->tottri; i++) { | for (i = 0; i < em->tottri; i++) { | ||||
| Context not available. | |||||
| vertexNos = bmdm->vertexNos; | vertexNos = bmdm->vertexNos; | ||||
| polyNos = bmdm->polyNos; | polyNos = bmdm->polyNos; | ||||
| /* always use smooth shading even for flat faces, else vertex colors wont interpolate */ | |||||
| glShadeModel(GL_SMOOTH); | |||||
| BM_mesh_elem_index_ensure(bm, (BM_VERT | BM_FACE) | (lnors ? BM_LOOP : 0)); | BM_mesh_elem_index_ensure(bm, (BM_VERT | BM_FACE) | (lnors ? BM_LOOP : 0)); | ||||
| for (i = 0; i < em->tottri; i++) { | for (i = 0; i < em->tottri; i++) { | ||||
| Context not available. | |||||