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).
This commit is contained in:
Hans Goudey 2021-05-25 14:37:58 -04:00
parent 95690dd362
commit c0bb7d9cb7
1 changed files with 2 additions and 2 deletions

View File

@ -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);