ObjectMode: Fix Outlines being drawn for BBox meshes

This commit is contained in:
Clément Foucault 2018-10-17 18:09:23 +02:00
parent 91e5e02aff
commit fd61b49d50
1 changed files with 1 additions and 1 deletions

View File

@ -2629,7 +2629,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
}
const bool do_outlines = (draw_ctx->v3d->flag & V3D_SELECT_OUTLINE) && ((ob->base_flag & BASE_SELECTED) != 0) &&
(DRW_object_is_renderable(ob) || (ob->dt == OB_WIRE));
((DRW_object_is_renderable(ob) && (ob->dt > OB_WIRE)) || (ob->dt == OB_WIRE));
const bool show_relations = ((draw_ctx->v3d->flag & V3D_HIDE_HELPLINES) == 0);
const bool hide_object_extra = (v3d->overlay.flag & V3D_OVERLAY_HIDE_OBJECT_XTRAS) != 0;