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:
parent
709ed80487
commit
95812e1cfc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue