From dd5602a1e5265b932fb6a3fbbe9aafa4cb7efeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 14 Jan 2019 16:26:32 +0100 Subject: Fix T60332: Lattice objects do not display properly in Edit mode This was caused by wires not having alpha by default, making them disapear with MSAA. --- source/blender/draw/intern/draw_cache_impl_lattice.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/draw/intern/draw_cache_impl_lattice.c') diff --git a/source/blender/draw/intern/draw_cache_impl_lattice.c b/source/blender/draw/intern/draw_cache_impl_lattice.c index 12f80c4e8e9..e542000a31a 100644 --- a/source/blender/draw/intern/draw_cache_impl_lattice.c +++ b/source/blender/draw/intern/draw_cache_impl_lattice.c @@ -426,6 +426,7 @@ static GPUVertBuf *lattice_batch_cache_get_pos(LatticeRenderData *rdata, Lattice if (use_weight) { float w_col[4]; lattice_render_data_weight_col_get(rdata, i, actdef, w_col); + w_col[3] = 1.0f; GPU_vertbuf_attr_set(cache->pos, attr_id.col, i, w_col); } -- cgit v1.2.3