Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
| Show First 20 Lines • Show All 1,033 Lines • ▼ Show 20 Lines | def mask_lasso(): | ||||
| label="Lasso Mask", | label="Lasso Mask", | ||||
| icon="ops.sculpt.lasso_mask", | icon="ops.sculpt.lasso_mask", | ||||
| widget=None, | widget=None, | ||||
| keymap=(), | keymap=(), | ||||
| ) | ) | ||||
| @ToolDef.from_fn | @ToolDef.from_fn | ||||
| def mesh_filter(): | def mesh_filter(): | ||||
| def draw_settings(_context, layout, tool): | def draw_settings(context, layout, tool): | ||||
| props = tool.operator_properties("sculpt.mesh_filter") | props = tool.operator_properties("sculpt.mesh_filter") | ||||
| layout.prop(props, "type", expand=False) | layout.prop(props, "type", expand=False) | ||||
| layout.prop(props, "strength") | layout.prop(props, "strength") | ||||
| layout.prop(props, "deform_axis") | layout.prop(props, "deform_axis") | ||||
| layout.prop(props, "use_face_sets") | layout.prop(props, "use_face_sets") | ||||
| if (props.type == "SURFACE_SMOOTH"): | if (props.type == "SURFACE_SMOOTH"): | ||||
| layout.prop(props, "surface_smooth_shape_preservation", expand=False) | layout.prop(props, "surface_smooth_shape_preservation", expand=False) | ||||
| layout.prop(props, "surface_smooth_current_vertex", expand=False) | layout.prop(props, "surface_smooth_current_vertex", expand=False) | ||||
| if (props.type == "SHARPEN"): | if (props.type == "SHARPEN"): | ||||
| layout.prop(props, "sharpen_smooth_ratio", expand=False) | layout.prop(props, "sharpen_smooth_ratio", expand=False) | ||||
| tool_settings = context.tool_settings | |||||
| sculpt = tool_settings.sculpt | |||||
| layout.prop(sculpt, "filter_texture") | |||||
| layout.prop(props, "texture_size") | |||||
| return dict( | return dict( | ||||
| idname="builtin.mesh_filter", | idname="builtin.mesh_filter", | ||||
| label="Mesh Filter", | label="Mesh Filter", | ||||
| icon="ops.sculpt.mesh_filter", | icon="ops.sculpt.mesh_filter", | ||||
| widget=None, | widget=None, | ||||
| keymap=(), | keymap=(), | ||||
| draw_settings=draw_settings, | draw_settings=draw_settings, | ||||
| ) | ) | ||||
| ▲ Show 20 Lines • Show All 1,348 Lines • Show Last 20 Lines | |||||