Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
| Show First 20 Lines • Show All 857 Lines • ▼ Show 20 Lines | def mask_border(): | ||||
| ) | ) | ||||
| class _defs_vertex_paint: | class _defs_vertex_paint: | ||||
| @staticmethod | @staticmethod | ||||
| def poll_select_mask(context): | def poll_select_mask(context): | ||||
| ob = context.active_object | ob = context.active_object | ||||
| return ob.type == 'MESH' and ob.data.use_paint_mask | return (ob.type == 'MESH' and | ||||
| (ob.data.use_paint_mask or | |||||
| ob.data.use_paint_mask_vertex)) | |||||
| @staticmethod | @staticmethod | ||||
| def generate_from_brushes(context): | def generate_from_brushes(context): | ||||
| return generate_from_enum_ex( | return generate_from_enum_ex( | ||||
| context, | context, | ||||
| icon_prefix="brush.paint_vertex.", | icon_prefix="brush.paint_vertex.", | ||||
| type=bpy.types.Brush, | type=bpy.types.Brush, | ||||
| attr="vertex_tool", | attr="vertex_tool", | ||||
| ▲ Show 20 Lines • Show All 778 Lines • Show Last 20 Lines | |||||