Fix cycles textured draw mode problem with objects that have an image texture

but not UV coordinates, it would show a different color with the object selected
and deselected.
This commit is contained in:
Brecht Van Lommel 2013-10-14 19:37:12 +00:00
parent 709ed80487
commit 95812e1cfc
1 changed files with 2 additions and 2 deletions

View File

@ -976,8 +976,8 @@ void draw_mesh_textured(Scene *scene, View3D *v3d, RegionView3D *rv3d,
GPU_begin_object_materials(v3d, rv3d, scene, ob, glsl, NULL);
if (glsl || picking) {
/* draw glsl */
if (glsl || picking || !CustomData_has_layer(&dm->loopData, CD_MLOOPUV)) {
/* draw glsl or solid */
dm->drawMappedFacesMat(dm,
tex_mat_set_material_cb,
set_face_cb, &data);