View3D: New tool 'Extrude, Dissolve and Intersect'

Basically this new tool constitutes a macro that uses the parameters of
the Extrude and Translate operators that were recently implemented.

Thanks to @CandleComet for initial implementation.

Differential Revision: https://developer.blender.org/D7222
This commit is contained in:
Germano Cavalcante
2020-04-15 12:01:43 -03:00
parent 8f86da71fe
commit b79a5bdd5a
4 changed files with 108 additions and 0 deletions

View File

@@ -670,6 +670,20 @@ class _defs_edit_mesh:
draw_settings=_template_widget.VIEW3D_GGT_xform_extrude.draw_settings,
)
@ToolDef.from_fn
def extrude_dissolve_and_intersect():
return dict(
idname="builtin.extrude_dissolve_and_intersect",
label="Extrude Dissolve and Intersect",
description=(
"Extrude, dissolves edges whose faces form a flat surface and intersect new edges"
),
icon="none",
widget="VIEW3D_GGT_tool_generic_handle_normal",
operator="view3d.edit_mesh_extrude_dissolve_and_intersect",
keymap=(),
)
@ToolDef.from_fn
def extrude_normals():
def draw_settings(_context, layout, tool):
@@ -2114,6 +2128,7 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
None,
(
_defs_edit_mesh.extrude,
_defs_edit_mesh.extrude_dissolve_and_intersect,
_defs_edit_mesh.extrude_normals,
_defs_edit_mesh.extrude_individual,
_defs_edit_mesh.extrude_cursor,