diff options
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; |