Commit: 3926e3ef68a3410b64003ab1c8dcaabe960a523a
Author: Campbell Barton
Date:   Wed May 17 16:41:21 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB3926e3ef68a3410b64003ab1c8dcaabe960a523a

DWM: correct unselected face overlay

===================================================================

M       source/blender/draw/intern/draw_cache_impl_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c 
b/source/blender/draw/intern/draw_cache_impl_mesh.c
index 4391eace695..d1b06df0f33 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -2709,7 +2709,7 @@ static VertexBuffer 
*mesh_batch_cache_get_tri_pos_with_unselect_only(
 
                for (int i = 0; i < tri_len; i++) {
                        const MLoopTri *mlt = &rdata->mlooptri[i];
-                       if (!(rdata->mpoly[mlt->poly].flag & ME_FACE_SEL)) {
+                       if (!(rdata->mpoly[mlt->poly].flag & (ME_FACE_SEL | 
ME_HIDE))) {
                                for (uint tri_corner = 0; tri_corner < 3; 
tri_corner++) {
                                        const uint v_index = 
rdata->mloop[mlt->tri[tri_corner]].v;
                                        VertexBuffer_set_attrib(vbo, 
attr_id.pos, vidx++, rdata->mvert[v_index].co);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to