DRW: Fix flat object not being selectable in wireframe view

The problem was double. They were not selectable in wireframe view and
they would not display with the right color, thus always appearing
un-selected.
This commit is contained in:
2018-12-18 15:08:33 +01:00
parent 6e5b573dc8
commit 45e1d4d9ac
2 changed files with 9 additions and 7 deletions

View File

@@ -141,6 +141,7 @@ static void basic_cache_populate(void *vedata, Object *ob)
/* Make flat object selectable in ortho view if wireframe is enabled. */
if ((draw_ctx->v3d->overlay.flag & V3D_OVERLAY_WIREFRAMES) ||
(draw_ctx->v3d->shading.type == OB_WIRE) ||
(ob->dtx & OB_DRAWWIRE) ||
(ob->dt == OB_WIRE))
{