diff options
author | Jacques Lucke <jacques@blender.org> | 2021-01-05 19:04:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-01-05 19:04:02 +0300 |
commit | 583006d0ef1a0b71c66dfab9c37cc4de27cf81d4 (patch) | |
tree | ab1182bd569efba44feb27f38498a1e08d9db629 /source/blender/editors | |
parent | 39f99fd05c353137130afd7fb101c9a78106d47b (diff) |
Cleanup: clang tidy
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 4 | ||||
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index dcc8ccf01e1..37dd320dcd0 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -674,7 +674,7 @@ static bool bake_targets_init_image_textures(const BakeAPIRender *bkr, reports, RPT_ERROR, "No active image found, add a material or bake to an external file"); return false; } - else if (bkr->is_split_materials) { + if (bkr->is_split_materials) { BKE_report( reports, RPT_ERROR, @@ -1120,7 +1120,7 @@ static bool bake_targets_output(const BakeAPIRender *bkr, if (bkr->save_mode == R_BAKE_SAVE_INTERNAL) { return bake_targets_output_internal(bkr, targets, ob, pixel_array, reports); } - else if (bkr->save_mode == R_BAKE_SAVE_EXTERNAL) { + if (bkr->save_mode == R_BAKE_SAVE_EXTERNAL) { return bake_targets_output_external(bkr, targets, ob, ob_eval, me, pixel_array, reports); } } diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 850e1382f47..be3c2604eb2 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -1877,7 +1877,7 @@ static bool modifier_copy_to_selected_poll(bContext *C) found_supported_objects = true; break; } - else if (BKE_object_support_modifier_type_check(ob, md->type)) { + if (BKE_object_support_modifier_type_check(ob, md->type)) { found_supported_objects = true; break; } |