diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-10-06 19:07:39 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-10-06 19:08:25 +0300 |
commit | 2b72860ff4473255ac73519e5a66c085c0c1fbe8 (patch) | |
tree | 608aeb380d6176ce451a1ddb4c2ddb4edbdf0e02 /release/scripts | |
parent | d43e3f34d26daca4f2b0f4c524a35a98cc85d1ce (diff) |
Sculpt: Union and Join mode for trim tools
This enables a union boolean mode for the trimming gestures tools which
adds geometry to the mesh instead of cutting it.
It also adds a Join mode, which adds the geometry directly without
using a boolean operation.
Depending if you plan to use dyntopo or not, it is useful to have both
options available.
This is using the full depth of the object from the camera view for the
depth of the geometry, but options for controlling the trimming depth in
all modes are going to be added in later patches
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D9066
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 8 |
1 files changed, 8 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 e021433bee3..af263bf5d53 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -1304,22 +1304,30 @@ class _defs_sculpt: @ToolDef.from_fn def trim_box(): + def draw_settings(_context, layout, tool): + props = tool.operator_properties("sculpt.trim_box_gesture") + layout.prop(props, "trim_mode", expand=False) return dict( idname="builtin.box_trim", label="Box Trim", icon="ops.sculpt.box_trim", widget=None, keymap=(), + draw_settings=draw_settings, ) @ToolDef.from_fn def trim_lasso(): + def draw_settings(_context, layout, tool): + props = tool.operator_properties("sculpt.trim_lasso_gesture") + layout.prop(props, "trim_mode", expand=False) return dict( idname="builtin.lasso_trim", label="Lasso Trim", icon="ops.sculpt.lasso_trim", widget=None, keymap=(), + draw_settings=draw_settings, ) @ToolDef.from_fn |