diff options
author | Simon Lenz <Amudtogal> | 2022-06-16 11:13:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-06-22 11:45:18 +0300 |
commit | df2ab4e758c73bc72a95fcc02ac1e711bbd86b17 (patch) | |
tree | d494bf031041336e05aa7cbb4c4a2064da39f420 /source/blender/editors/mask/mask_draw.c | |
parent | 5946ea938a07bf95c7682af919ee33c715e1fa42 (diff) |
Mask Editor: Add toggle for mask spline drawing
Adds an overlay option to show/hide the spline points & lines of masks in the Mask Editor.
It also moves the "smooth" option up (its position left of the selection dropdown was missleading).
{F11847272}
This emerged from a discussion in https://developer.blender.org/D12776
Differential Revision: https://developer.blender.org/D13314
Diffstat (limited to 'source/blender/editors/mask/mask_draw.c')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index 1bd224fe763..a18419ad422 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -776,7 +776,9 @@ void ED_mask_draw_region( } /* draw! */ - draw_mask_layers(C, mask_eval, draw_flag, draw_type, width, height); + if (draw_flag & MASK_DRAWFLAG_SPLINE) { + draw_mask_layers(C, mask_eval, draw_flag, draw_type, width, height); + } if (do_draw_cb) { ED_region_draw_cb_draw(C, region, REGION_DRAW_POST_VIEW); |