Only use outlines around faces for surface objects

Was drawing wire when mixed with non-wire nurbs.
This commit is contained in:
Campbell Barton
2016-02-20 13:44:17 +11:00
parent ae4c46c6e5
commit e29a5ba617

View File

@@ -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));
}
}
}