diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-09 16:42:51 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-09 16:50:17 +0300 |
commit | 6a4df70d4119f881f4aec78f4943de1cf68957a1 (patch) | |
tree | 2faf0eb4a9857708c5bf0fa5bcf39e4949065393 /release/scripts/startup | |
parent | 97a5f961c4f8d7c6e6a8b6bf47a49f092329153b (diff) |
Sculpt: Mesh Filter Tool
The mesh filter tool applies a deformation to all vertices in the mesh at the same time. It includes multiple deformation modes and the option to lock the deformation axis.
This commit also includes the FilterCache, which is needed in some new operators and tools.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5513
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 1403c1fb532..f868c945512 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -985,6 +985,22 @@ class _defs_sculpt: keymap=(), ) + @ToolDef.from_fn + def mesh_filter(): + def draw_settings(context, layout, tool): + props = tool.operator_properties("sculpt.mesh_filter") + layout.prop(props, "type", expand=False) + layout.prop(props, "strength") + layout.prop(props, "deform_axis") + + return dict( + idname="builtin.mesh_filter", + label="Mesh Filter", + icon="ops.sculpt.mesh_filter", + widget=None, + keymap= (), + draw_settings=draw_settings, + ) class _defs_vertex_paint: @@ -1967,6 +1983,8 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel): ), _defs_sculpt.hide_border, None, + _defs_sculpt.mesh_filter, + None, *_tools_annotate, ], 'PAINT_TEXTURE': [ |