Edit Mode: Fix edge partially displayed as selected with modifier preview
authorClément Foucault <foucault.clem@gmail.com>
Thu, 7 Feb 2019 18:06:34 +0000 (19:06 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 7 Feb 2019 18:06:54 +0000 (19:06 +0100)
Force set the flag vertice selected in this case.

source/blender/draw/intern/draw_cache_impl_mesh.c

index de85b4d7bc27b07fb3b4bd103522ca221357ab6e..b51c684a0fdbe63c414abe0b4fa91b98e0b0aebc 100644 (file)
@@ -1520,6 +1520,7 @@ static void mesh_render_data_edge_flag(
            BM_elem_flag_test(eed->v2, BM_ELEM_SELECT))
        {
                eattr->e_flag |= VFLAG_EDGE_SELECTED;
+               eattr->e_flag |= VFLAG_VERT_SELECTED;
        }
        if (BM_elem_flag_test(eed, BM_ELEM_SEAM)) {
                eattr->e_flag |= VFLAG_EDGE_SEAM;