diff options
author | Bastien Montagne <bastien@blender.org> | 2020-09-21 11:35:50 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-09-21 11:37:23 +0300 |
commit | 3bb53b0ee640e744219e2a38207d1fbc76ca2068 (patch) | |
tree | b84afd5a022be12f02ce36c17e867fbdd0dcd266 /source/blender/editors/sculpt_paint/paint_image_2d.c | |
parent | 213445e3896922c2278fc7cdcb74d8ca13fa6a3e (diff) |
Cleanup: Sculpt/Paint ED code: correct return constant types.
Mainly use false/true for bool, but also a few others.
No change in behavior expected.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index d614c800350..78dc5fea2ce 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -1037,7 +1037,7 @@ static float paint_2d_ibuf_add_if( paint_2d_ibuf_rgb_get(ibuf, x, y, inrgb); } else { - return 0; + return 0.0f; } mul_v4_fl(inrgb, w); @@ -1690,7 +1690,7 @@ void *paint_2d_new_stroke(bContext *C, wmOperator *op, int mode) if (BKE_image_has_packedfile(s->image) && s->image->rr != NULL) { BKE_report(op->reports, RPT_WARNING, "Packed MultiLayer files cannot be painted"); MEM_freeN(s); - return 0; + return NULL; } s->num_tiles = BLI_listbase_count(&s->image->tiles); |