Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-05-25 21:37:58 +0300
committerHans Goudey <h.goudey@me.com>2021-05-25 21:37:58 +0300
commitc0bb7d9cb78787b006cd71b1d809d6a0e47bb4f2 (patch)
tree5191418c5ce2cf4b64ad7f61ac6cfb3fa3e51d01
parent95690dd362f3a94f6c3b1efbe91e8b5cc164745f (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).
-rw-r--r--source/blender/draw/intern/draw_cache_impl_curve.cc4
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);