diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-20 05:44:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-20 05:49:18 +0300 |
commit | e29a5ba6177189a101ecf56cc77c105aa5b4b6a4 (patch) | |
tree | 6b6cc2d0ad7bbd205e2d5d1e2c8479bfd9651148 /source/blender/editors/space_view3d/drawobject.c | |
parent | ae4c46c6e58647c1197edf5de7e1e02a3f752346 (diff) |
Only use outlines around faces for surface objects
Was drawing wire when mixed with non-wire nurbs.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 889d94ecc55..871faa3f7b3 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -7176,7 +7176,12 @@ static void drawObjectSelect(Scene *scene, View3D *v3d, ARegion *ar, Base *base, draw_mesh_object_outline(v3d, ob, dm); } else { - drawDispListwire(&ob->curve_cache->disp, ob->type); + /* don't show outline on 'wire' with surfaces, + * don't show interior tessellation with curves */ + drawDispListwire_ex( + &ob->curve_cache->disp, + (ob->type == OB_SURF) ? + (DL_INDEX3 | DL_INDEX4 | DL_SURF) : (DL_SEGM | DL_POLY)); } } } |