diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 11:00:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 11:07:14 +0300 |
commit | e718004edf3fc335d686cc2a0291f1f0df4eba32 (patch) | |
tree | 97416aa6724970fc430ece20940bd855fdcce6ed /source/blender/editors/sculpt_paint | |
parent | 246efd7286f6187e4dd4b3edcc79cccb1746bb1d (diff) |
Cleanup: use bool arguments & variables
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 78dc5fea2ce..29e2af01cac 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -91,7 +91,7 @@ typedef struct BrushPainter { Scene *scene; Brush *brush; - short firsttouch; /* first paint op */ + bool firsttouch; /* first paint op */ struct ImagePool *pool; /* image pool */ rctf tex_mapping; /* texture coordinate mapping */ @@ -161,7 +161,7 @@ static BrushPainter *brush_painter_2d_new(Scene *scene, Brush *brush, bool inver painter->brush = brush; painter->scene = scene; - painter->firsttouch = 1; + painter->firsttouch = true; painter->cache_invert = invert; return painter; @@ -1659,7 +1659,7 @@ void paint_2d_stroke(void *ps, } } - painter->firsttouch = 0; + painter->firsttouch = false; } void *paint_2d_new_stroke(bContext *C, wmOperator *op, int mode) |