diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 18:30:31 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 18:42:46 +0300 |
commit | 33a74941c5fd4efb6eefcaace3315d3e2b65681f (patch) | |
tree | 2d3da68b73e4419750c7f767bbb78bf1a303ad18 /source/blender/editors/mask/mask_add.c | |
parent | 367034f210137754ab4f07a0e7793066d2b69e59 (diff) |
Cleanup: Editors, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/mask/mask_add.c')
-rw-r--r-- | source/blender/editors/mask/mask_add.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c index 767976b5ae6..b7fd661d8e6 100644 --- a/source/blender/editors/mask/mask_add.c +++ b/source/blender/editors/mask/mask_add.c @@ -210,7 +210,7 @@ static void finSelectedSplinePoint(MaskLayer *mask_layer, *point = NULL; return; } - else if (*point) { + if (*point) { *point = NULL; } else { @@ -319,9 +319,7 @@ static bool add_vertex_extrude(const bContext *C, if (!mask_layer) { return false; } - else { - finSelectedSplinePoint(mask_layer, &spline, &point, true); - } + finSelectedSplinePoint(mask_layer, &spline, &point, true); ED_mask_select_toggle_all(mask, SEL_DESELECT); @@ -502,7 +500,7 @@ static int add_vertex_handle_cyclic( if (is_last_point_active) { return add_vertex_handle_cyclic_at_point(C, mask, spline, active_point, first_point, co); } - else if (is_first_point_active) { + if (is_first_point_active) { return add_vertex_handle_cyclic_at_point(C, mask, spline, active_point, last_point, co); } return OPERATOR_PASS_THROUGH; |