Fix T60332: Lattice objects do not display properly in Edit mode
authorClément Foucault <foucault.clem@gmail.com>
Mon, 14 Jan 2019 15:26:32 +0000 (16:26 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 14 Jan 2019 17:33:07 +0000 (18:33 +0100)
This was caused by wires not having alpha by default, making them disapear
with MSAA.

source/blender/draw/intern/draw_cache_impl_lattice.c

index 12f80c4..e542000 100644 (file)
@@ -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);
                        }