diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-19 02:04:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-19 02:04:15 +0300 |
commit | ec57d76db81a4d0c32b50ccc8772eb7d632f4f54 (patch) | |
tree | 52ca97051a619d8fa2a1735a275483dd28dc6231 /source/blender/draw/intern/draw_cache_impl_curve.c | |
parent | 53e95a982cdb94483134d2252d1a19fa2592f67e (diff) |
Fix edit-curve display for hidden handles
When the first handle was hidden, all others would show as hidden too.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_curve.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_curve.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curve.c b/source/blender/draw/intern/draw_cache_impl_curve.c index fa6e6383e6f..f41062d2018 100644 --- a/source/blender/draw/intern/draw_cache_impl_curve.c +++ b/source/blender/draw/intern/draw_cache_impl_curve.c @@ -739,12 +739,12 @@ static void curve_create_edit_data_and_handles( for (Nurb *nu = rdata->nurbs->first; nu; nu = nu->next, nu_id++) { const BezTriple *bezt = nu->bezt; const BPoint *bp = nu->bp; - if (bezt && bezt->hide == false) { + if (bezt) { for (int a = 0; a < nu->pntsu; a++, bezt++) { - if (elbp_verts) { + if (elbp_verts && bezt->hide == false) { GPU_indexbuf_add_point_vert(elbp_verts, vbo_len_used + 1); } - if (elbp_lines) { + if (elbp_lines && bezt->hide == false) { GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 1, vbo_len_used + 0); GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 1, vbo_len_used + 2); } |