diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-09 20:51:29 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-09 20:51:29 +0400 |
commit | c782505775818c7e502ce0dccb5870bb017a983d (patch) | |
tree | 42669d49404da7077d50ffe9c8106363fe625988 | |
parent | 1c811d96b22b0880c118aca21f151e593fc45fc2 (diff) |
Back buffer selection needs updates to materials.
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 13e74ece692..22fff90da42 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -7710,6 +7710,8 @@ static void bbs_mesh_solid_verts(Scene *scene, Object *ob) DerivedMesh *dm = mesh_get_derived_final(scene, ob, scene->customdata_mask); glColor3ub(0, 0, 0); + DM_update_materials(dm, ob); + dm->drawMappedFaces(dm, bbs_mesh_solid_hide2__setDrawOpts, GPU_enable_material, NULL, me, 0); bbs_obmode_mesh_verts(ob, dm, 1); @@ -7724,6 +7726,8 @@ static void bbs_mesh_solid_faces(Scene *scene, Object *ob) glColor3ub(0, 0, 0); + DM_update_materials(dm, ob); + if ((me->editflag & ME_EDIT_PAINT_FACE_SEL)) dm->drawMappedFaces(dm, bbs_mesh_solid_hide__setDrawOpts, GPU_enable_material, NULL, me, 0); else |