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:
authorClément Foucault <foucault.clem@gmail.com>2019-01-14 20:32:45 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-14 20:33:07 +0300
commit6f9e3e9d330625a465456b8de287a4b06c60b879 (patch)
tree4a119c2b5f32d0c974d6152ffa0ecdb373901d98
parent209afa28c6ee4714f375a44824511a8ac6d656a4 (diff)
Fix T60476 Loose vertices only partially drawn
Was caused by a missing vbo attachement. Also fix said Vbo refreshing when selecting.
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index e29d87fe13d..9a3cde9181b 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -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);