Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-01-14 18:26:32 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-14 20:33:07 +0300
commitdd5602a1e5265b932fb6a3fbbe9aafa4cb7efeaf (patch)
tree0d27a0af5b2d7a3b8c236a7ce48f31d152702fe6 /source
parent630a7e73bc8acacdb3c73ef2b6b9768caf863cc9 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_lattice.c1
1 files changed, 1 insertions, 0 deletions
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);
}