Fix T80064: Adding mask curve points doesn't work around endpoints

This commit is contained in:
Germano Cavalcante 2020-08-28 11:50:21 -03:00
parent 368f8f7404
commit 5086bdfe0b
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #80064, Mask Editing: Adding mask curve points (CTRL+LMB) doesn't work around certain points
1 changed files with 4 additions and 2 deletions

View File

@ -462,8 +462,10 @@ static int add_vertex_handle_cyclic_at_point(bContext *C,
const float tolerance_in_pixels_squared = 4 * 4;
if (spline->flag & MASK_SPLINE_CYCLIC) {
/* No cycling toggle needed, we've got nothing meaningful to do in this operator. */
return OPERATOR_CANCELLED;
/* The spline is already cyclic, so there is no need to handle anything here.
* Return PASS_THROUGH so that it's possible to add vertices close to the endpoints of the
* cyclic spline. */
return OPERATOR_PASS_THROUGH;
}
float co_pixel[2];