From 95812e1cfcd68e911a03422cb1bf441e29f1dd29 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 14 Oct 2013 19:37:12 +0000 Subject: [PATCH] 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. --- source/blender/editors/space_view3d/drawmesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c index 16423c60cac..269b9247c81 100644 --- a/source/blender/editors/space_view3d/drawmesh.c +++ b/source/blender/editors/space_view3d/drawmesh.c @@ -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);