[Bf-blender-cvs] [6f9e3e9d330] master: Fix T60476 Loose vertices only partially drawn
Clément Foucault
noreply at git.blender.org
Mon Jan 14 18:33:18 CET 2019
Commit: 6f9e3e9d330625a465456b8de287a4b06c60b879
Author: Clément Foucault
Date: Mon Jan 14 18:32:45 2019 +0100
Branches: master
https://developer.blender.org/rB6f9e3e9d330625a465456b8de287a4b06c60b879
Fix T60476 Loose vertices only partially drawn
Was caused by a missing vbo attachement.
Also fix said Vbo refreshing when selecting.
===================================================================
M source/blender/draw/intern/draw_cache_impl_mesh.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list