Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
| Show First 20 Lines • Show All 1,502 Lines • ▼ Show 20 Lines | |||||
| class _defs_gpencil_sculpt: | class _defs_gpencil_sculpt: | ||||
| @staticmethod | @staticmethod | ||||
| def poll_select_mask(context): | def poll_select_mask(context): | ||||
| if context is None: | if context is None: | ||||
| return True | return True | ||||
| ob = context.active_object | ob = context.active_object | ||||
| ts = context.scene.tool_settings | ts = context.scene.tool_settings | ||||
| return (ob and ob.type == 'GPENCIL' and | return ob and ob.type == 'GPENCIL' and (ts.use_gpencil_select_mask_point or | ||||
| (ts.gpencil_sculpt.use_select_mask)) | ts.use_gpencil_select_mask_stroke or | ||||
| ts.use_gpencil_select_mask_segment) | |||||
| @staticmethod | @staticmethod | ||||
| def generate_from_brushes(context): | def generate_from_brushes(context): | ||||
| return generate_from_enum_ex( | return generate_from_enum_ex( | ||||
| context, | context, | ||||
| idname_prefix="builtin_brush.", | idname_prefix="builtin_brush.", | ||||
| icon_prefix="ops.gpencil.sculpt_", | icon_prefix="ops.gpencil.sculpt_", | ||||
| type=bpy.types.GPencilSculptSettings, | type=bpy.types.GPencilSculptSettings, | ||||
| ▲ Show 20 Lines • Show All 541 Lines • Show Last 20 Lines | |||||