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
This commit is contained in:
Simon Lenz
2022-06-16 10:13:03 +02:00
committed by Sergey Sharybin
parent 5946ea938a
commit df2ab4e758
20 changed files with 182 additions and 41 deletions

View File

@@ -231,9 +231,13 @@ class MASK_PT_display:
layout = self.layout
space_data = context.space_data
layout.prop(space_data, "show_mask_smooth", text="Smooth")
row = layout.row(align=True)
row.prop(space_data, "show_mask_smooth", text="Smooth")
row.prop(space_data, "mask_display_type", text="")
row.prop(space_data, "show_mask_spline", text="Spline")
sub = row.row()
sub.active = space_data.show_mask_spline
sub.prop(space_data, "mask_display_type", text="")
row = layout.row(align=True)
row.prop(space_data, "show_mask_overlay", text="Overlay")
sub = row.row()