Fix for "Show Overlay" for masks always grayed out
This commit is contained in:
@@ -220,15 +220,14 @@ class MASK_PT_display():
|
|||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
space_data = context.space_data
|
space_data = context.space_data
|
||||||
col = layout.column(align=True)
|
row = layout.row(align=True)
|
||||||
row = col.row(align=True)
|
|
||||||
row.prop(space_data, "show_mask_smooth", text="Smooth")
|
row.prop(space_data, "show_mask_smooth", text="Smooth")
|
||||||
row.prop(space_data, "mask_draw_type", text="")
|
row.prop(space_data, "mask_draw_type", text="")
|
||||||
col = layout.column(align=True)
|
row = layout.row(align=True)
|
||||||
row = col.row(align=True)
|
|
||||||
row.prop(space_data, "show_mask_overlay", text="Overlay")
|
row.prop(space_data, "show_mask_overlay", text="Overlay")
|
||||||
row.active = space_data.show_mask_overlay
|
sub = row.row()
|
||||||
row.prop(space_data, "mask_overlay_mode", text="")
|
sub.active = space_data.show_mask_overlay
|
||||||
|
sub.prop(space_data, "mask_overlay_mode", text="")
|
||||||
|
|
||||||
|
|
||||||
class MASK_PT_transforms():
|
class MASK_PT_transforms():
|
||||||
|
Reference in New Issue
Block a user