diff options
author | Hans Goudey <h.goudey@me.com> | 2021-05-25 21:37:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-05-25 21:37:58 +0300 |
commit | c0bb7d9cb78787b006cd71b1d809d6a0e47bb4f2 (patch) | |
tree | 5191418c5ce2cf4b64ad7f61ac6cfb3fa3e51d01 /source/blender/draw | |
parent | 95690dd362f3a94f6c3b1efbe91e8b5cc164745f (diff) |
Cleanup: Fix short comparison with bool warning
For some reason the hide status is stored in a short and a char
(we cannot have bools in DNA).
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_curve.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curve.cc b/source/blender/draw/intern/draw_cache_impl_curve.cc index 223b44724b6..ddafc7205bb 100644 --- a/source/blender/draw/intern/draw_cache_impl_curve.cc +++ b/source/blender/draw/intern/draw_cache_impl_curve.cc @@ -796,7 +796,7 @@ static void curve_create_edit_data_and_handles(CurveRenderData *rdata, if (bezt) { for (int a = 0; a < nu->pntsu; a++, bezt++) { - if (bezt->hide == true) { + if (bezt->hide != 0) { continue; } const bool handle_selected = BEZT_ISSEL_ANY(bezt); @@ -831,7 +831,7 @@ static void curve_create_edit_data_and_handles(CurveRenderData *rdata, else if (bp) { int pt_len = nu->pntsu * nu->pntsv; for (int a = 0; a < pt_len; a++, bp++, vbo_len_used += 1) { - if (bp->hide == true) { + if (bp->hide != 0) { continue; } int u = (a % nu->pntsu); |