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
diff options
context:
space:
mode:
authorLuca Rood <dev@lucarood.com>2017-06-27 19:39:45 +0300
committerLuca Rood <dev@lucarood.com>2017-06-27 19:40:39 +0300
commit2ed82d2e6bb6d7887e4a07ad9600b7b579a74a38 (patch)
tree74ba589a6a3e1135276a7d345b70189b3c6214e0 /source/blender/draw/modes/edit_lattice_mode.c
parentd04f30c5d84889b9c4c77e102726c6d595518984 (diff)
Fix missing globalsBlock in edit mode latice drawing
This was causing lattice vertices not to be drawn.
Diffstat (limited to 'source/blender/draw/modes/edit_lattice_mode.c')
-rw-r--r--source/blender/draw/modes/edit_lattice_mode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/modes/edit_lattice_mode.c b/source/blender/draw/modes/edit_lattice_mode.c
index 790d2627a14..722010148ff 100644
--- a/source/blender/draw/modes/edit_lattice_mode.c
+++ b/source/blender/draw/modes/edit_lattice_mode.c
@@ -177,6 +177,8 @@ static void EDIT_LATTICE_cache_init(void *vedata)
"Lattice Verts",
DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_POINT);
stl->g_data->vert_shgrp = DRW_shgroup_create(e_data.overlay_vert_sh, psl->vert_pass);
+
+ DRW_shgroup_uniform_block(stl->g_data->vert_shgrp, "globalsBlock", globals_ubo);
}
}