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.
This commit is contained in:
Clément Foucault 2019-01-14 16:26:32 +01:00
parent 630a7e73bc
commit dd5602a1e5
Notes: blender-bot 2023-02-14 04:09:00 +01:00
Referenced by issue #60332, Lattice objects do not display properly in Edit mode
1 changed files with 1 additions and 0 deletions

View 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);
}