diff options
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index ca185fa7d7d..dd6749638a7 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -1326,17 +1326,8 @@ void DRW_mesh_batch_cache_create_requested( DRW_vbo_request(cache->batch.edit_fdots, &mbufcache->vbo.fdots_pos); DRW_vbo_request(cache->batch.edit_fdots, &mbufcache->vbo.fdots_nor); } - if (DRW_batch_requested(cache->batch.edit_skin_roots, GPU_PRIM_LINES)) { + if (DRW_batch_requested(cache->batch.edit_skin_roots, GPU_PRIM_POINTS)) { DRW_vbo_request(cache->batch.edit_skin_roots, &mbufcache->vbo.skin_roots); - /* HACK(fclem): This is to workaround the deferred batch init - * that prevent drawing using DRW_shgroup_call_instances_with_attribs. - * So we instead create the whole instancing batch here. - * Note that we use GPU_PRIM_LINES instead of expected GPU_PRIM_LINE_STRIP - * in order to mimic the old stipple pattern. */ - cache->batch.edit_skin_roots->inst = cache->batch.edit_skin_roots->verts[0]; - cache->batch.edit_skin_roots->verts[0] = NULL; - GPUBatch *circle = DRW_cache_screenspace_circle_get(); - GPU_batch_vertbuf_add(cache->batch.edit_skin_roots, circle->verts[0]); } /* Selection */ |