Fix missing globalsBlock in edit mode latice drawing

This was causing lattice vertices not to be drawn.
This commit is contained in:
2017-06-27 18:39:45 +02:00
parent d04f30c5d8
commit 2ed82d2e6b

View File

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