diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-13 19:16:04 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-15 17:14:17 +0300 |
commit | acc5d02f698a3cb3409eb9994217aae81e4f6f08 (patch) | |
tree | c8c4dfe6458e39b971b1e7430f14c5147ee51078 /source/blender/draw/modes/edit_mesh_mode.c | |
parent | 5a377521aad51d10222ff69505271024df32af4e (diff) |
Edit Mode Engine: Fix loose edges/verts not displaying.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index 4034b56155b..4db054d8cfb 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -281,10 +281,12 @@ static DRWPass *edit_mesh_create_overlay_pass( DRW_shgroup_uniform_float(*r_face_shgrp, "faceAlphaMod", faceAlpha, 1); *r_ledges_shgrp = DRW_shgroup_create(ledge_sh, pass); + DRW_shgroup_uniform_block(*r_ledges_shgrp, "globalsBlock", globals_ubo); DRW_shgroup_uniform_vec2(*r_ledges_shgrp, "viewportSize", DRW_viewport_size_get(), 1); if ((tsettings->selectmode & (SCE_SELECT_VERTEX)) != 0) { *r_lverts_shgrp = DRW_shgroup_create(e_data.overlay_vert_sh, pass); + DRW_shgroup_uniform_block(*r_lverts_shgrp, "globalsBlock", globals_ubo); DRW_shgroup_uniform_vec2(*r_lverts_shgrp, "viewportSize", DRW_viewport_size_get(), 1); } |