diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-02-18 17:52:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-02-18 18:02:27 +0300 |
commit | d62f8a3176393998b3c2a6aa19896eb292ed215f (patch) | |
tree | 45ab9204483d88f941a5039f9d4952ad4d2f6043 /source/blender/draw/modes | |
parent | 5d58b7f073987543d8d952587a8ffd1268ca443e (diff) |
Overlay: Remove extra contour drawing in wireframe mode
This removes the overhead of rendering the object one more time.
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 0c82c39f8b4..86ab27fe6a1 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -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; |