diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-02 20:10:18 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-02 20:10:40 +0300 |
commit | f5e55c33378b96e614710006121860eb880e6820 (patch) | |
tree | 4f24b19e6b5e187d9b7b3d43f741c26f2c843fc8 /source/blender/editors/space_image/image_ops.c | |
parent | f20f82ce3ee55c12adcec024e0133e71183e07b3 (diff) |
Cleanup: use bool instead of int in various places
Diffstat (limited to 'source/blender/editors/space_image/image_ops.c')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index f312981d0e1..0a8bcd91f34 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -270,10 +270,10 @@ static bool space_image_main_area_not_uv_brush_poll(bContext *C) ToolSettings *toolsettings = scene->toolsettings; if (sima && !toolsettings->uvsculpt && (CTX_data_edit_object(C) == NULL)) { - return 1; + return true; } - return 0; + return false; } /** \} */ @@ -2897,16 +2897,16 @@ static bool image_pack_test(bContext *C, wmOperator *op) Image *ima = image_from_context(C); if (!ima) { - return 0; + return false; } if (ELEM(ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE, IMA_SRC_TILED)) { BKE_report( op->reports, RPT_ERROR, "Packing movies, image sequences or tiled images not supported"); - return 0; + return false; } - return 1; + return true; } static int image_pack_exec(bContext *C, wmOperator *op) |