diff options
author | Germano <germano.costa@ig.com.br> | 2017-12-04 17:05:06 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2017-12-04 17:05:06 +0300 |
commit | 9f5bf197a0c3d53af2bf438460e0b2433d3519dd (patch) | |
tree | 66e2b00e76a580015069e228d112836255cd6f63 /source/blender/editors/space_view3d/drawobject.c | |
parent | d974d254975df7aae20804f189b64c0741d52ba1 (diff) |
Edit Mesh Selection: Draw the backbuff of edge selection only when requested
And make sure the width is 1
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index d7e3b78cdc3..a1075f7efcf 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -8273,6 +8273,7 @@ static DMDrawOption bbs_mesh_wire__setDrawOptions(void *userData, int index) static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *dm, int offset) { drawBMOffset_userData data = {em->bm, offset}; + glLineWidth(1); dm->drawMappedEdges(dm, bbs_mesh_wire__setDrawOptions, &data); } @@ -8437,9 +8438,11 @@ void draw_object_backbufsel(Scene *scene, View3D *v3d, RegionView3D *rv3d, Objec ED_view3d_polygon_offset(rv3d, 1.0); - /* we draw edges always, for loop (select) tools */ - bbs_mesh_wire(em, dm, bm_solidoffs); - bm_wireoffs = bm_solidoffs + em->bm->totedge; + /* we draw edges if edge select mode */ + if (ts->selectmode & SCE_SELECT_EDGE) { + bbs_mesh_wire(em, dm, bm_solidoffs); + bm_wireoffs = bm_solidoffs + em->bm->totedge; + } /* we draw verts if vert select mode. */ if (ts->selectmode & SCE_SELECT_VERTEX) { |