Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_mask_common.py
| Show First 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | class MASK_PT_display: | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| space_data = context.space_data | space_data = context.space_data | ||||
| return space_data.mask and space_data.mode == 'MASK' | return space_data.mask and space_data.mode == 'MASK' | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| space_data = context.space_data | space_data = context.space_data | ||||
| layout.prop(space_data, "show_mask_smooth", text="Smooth") | |||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(space_data, "show_mask_spline", text="Spline") | row.prop(space_data, "show_mask_spline", text="Spline") | ||||
| sub = row.row() | sub = row.row() | ||||
| sub.active = space_data.show_mask_spline | sub.active = space_data.show_mask_spline | ||||
| sub.prop(space_data, "mask_display_type", text="") | sub.prop(space_data, "mask_display_type", text="") | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(space_data, "show_mask_overlay", text="Overlay") | row.prop(space_data, "show_mask_overlay", text="Overlay") | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||