diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-12-02 19:33:21 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-12-02 19:33:21 +0300 |
commit | 6d2bc870a7c6486086f7fb4ec1879dae89dc57fe (patch) | |
tree | 120951c0adca776776313b662276a7a3972a0481 | |
parent | 35217b4c06e76b3de1a055902939ee01cafdf84f (diff) |
Overlays: Fix dashed curves and loose edges
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_extra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c index d088142bdef..f45712b04d8 100644 --- a/source/blender/draw/engines/overlay/overlay_extra.c +++ b/source/blender/draw/engines/overlay/overlay_extra.c @@ -249,7 +249,8 @@ void OVERLAY_extra_wire(OVERLAY_ExtraCallBuffers *cb, const float color[4]) { float draw_mat[4][4]; - pack_v4_in_mat4(draw_mat, mat, color); + float col[4] = {UNPACK3(color), 0.0f /* No stipples. */}; + pack_v4_in_mat4(draw_mat, mat, col); DRW_shgroup_call_obmat(cb->extra_wire, geom, draw_mat); } |