Fix T60476 Loose vertices only partially drawn

Was caused by a missing vbo attachement.

Also fix said Vbo refreshing when selecting.
This commit is contained in:
Clément Foucault 2019-01-14 18:32:45 +01:00
parent 209afa28c6
commit 6f9e3e9d33
Notes: blender-bot 2023-02-14 04:39:18 +01:00
Referenced by issue #60476, Loose vertices only partially drawn
1 changed files with 2 additions and 0 deletions

View File

@ -2291,6 +2291,7 @@ void DRW_mesh_batch_cache_dirty_tag(Mesh *me, int mode)
GPU_BATCH_DISCARD_SAFE(cache->batch.edit_vertices);
GPU_BATCH_DISCARD_SAFE(cache->batch.edit_loose_verts);
GPU_BATCH_DISCARD_SAFE(cache->batch.edit_loose_edges);
GPU_BATCH_DISCARD_SAFE(cache->batch.edit_loose_edges_nor);
GPU_BATCH_DISCARD_SAFE(cache->batch.edit_facedots);
/* Paint mode selection */
/* TODO only do that in paint mode. */
@ -5154,6 +5155,7 @@ void DRW_mesh_batch_cache_create_requested(
}
if (DRW_batch_requested(cache->batch.edit_loose_edges_nor, GPU_PRIM_POINTS)) {
DRW_vbo_request(cache->batch.edit_loose_edges_nor, &cache->edit.pos_nor_ledges);
DRW_vbo_request(cache->batch.edit_loose_edges_nor, &cache->edit.data_ledges);
}
if (DRW_batch_requested(cache->batch.edit_facedots, GPU_PRIM_POINTS)) {
DRW_vbo_request(cache->batch.edit_facedots, &cache->edit.pos_nor_data_facedots);