[Bf-blender-cvs] [dd5602a1e52] master: Fix T60332: Lattice objects do not display properly in Edit mode

Clément Foucault noreply at git.blender.org
Mon Jan 14 18:33:11 CET 2019


Commit: dd5602a1e5265b932fb6a3fbbe9aafa4cb7efeaf
Author: Clément Foucault
Date:   Mon Jan 14 16:26:32 2019 +0100
Branches: master
https://developer.blender.org/rBdd5602a1e5265b932fb6a3fbbe9aafa4cb7efeaf

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.

===================================================================

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



More information about the Bf-blender-cvs mailing list