diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 17:50:21 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 17:50:21 +0300 |
commit | 5086bdfe0bb69c8841b81f5f867acd5626038622 (patch) | |
tree | 6e24c2b4e36ab78282e3fff338c23c8efdbde47f /source/blender/editors/mask/mask_add.c | |
parent | 368f8f740409e5c8af40e341597e89e9e861b584 (diff) |
Fix T80064: Adding mask curve points doesn't work around endpoints
Diffstat (limited to 'source/blender/editors/mask/mask_add.c')
-rw-r--r-- | source/blender/editors/mask/mask_add.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c index 3dc6227434e..e43eea35a91 100644 --- a/source/blender/editors/mask/mask_add.c +++ b/source/blender/editors/mask/mask_add.c @@ -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]; |