Overlay: Remove extra contour drawing in wireframe mode

This removes the overhead of rendering the object one more time.
This commit is contained in:
Clément Foucault 2019-02-18 15:52:00 +01:00
parent 5d58b7f073
commit d62f8a3176
1 changed files with 1 additions and 0 deletions

View File

@ -2904,6 +2904,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) &&
(draw_ctx->v3d->shading.type != 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;