From 4aa2a5481cec4edc4694ee1edbde4ed3f3986313 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 21 Jul 2020 16:32:00 -0400 Subject: Bevel: Refactor "Vertex Only" to an enum This matches the change that was done to the bevel modifier so that the interface for the modifier, the active tool, and the operator are consistent. This commit extends the refactor to the bmesh implementation too, so that the parameters in the implementation don't stray too far from what is exposed. Tests are adjusted and still pass. --- release/scripts/startup/bl_ui/space_view3d.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_view3d.py') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 3a5efc30f50..8880d8c5378 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3697,7 +3697,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu): col.separator() col.operator("mesh.extrude_vertices_move", text="Extrude Vertices") - col.operator("mesh.bevel", text="Bevel Vertices").vertex_only = True + col.operator("mesh.bevel", text="Bevel Vertices").affect = 'VERTICES' if selected_verts_len > 1: col.separator() @@ -3746,7 +3746,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu): col.separator() col.operator("mesh.extrude_edges_move", text="Extrude Edges") - col.operator("mesh.bevel", text="Bevel Edges").vertex_only = False + col.operator("mesh.bevel", text="Bevel Edges").affect = 'EDGES' if selected_edges_len >= 2: col.operator("mesh.bridge_edge_loops") if selected_edges_len >= 1: @@ -3920,7 +3920,7 @@ class VIEW3D_MT_edit_mesh_vertices(Menu): layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("mesh.extrude_vertices_move", text="Extrude Vertices") - layout.operator("mesh.bevel", text="Bevel Vertices").vertex_only = True + layout.operator("mesh.bevel", text="Bevel Vertices").affect = 'VERTICES' layout.separator() @@ -4005,7 +4005,7 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("mesh.extrude_edges_move", text="Extrude Edges") - layout.operator("mesh.bevel", text="Bevel Edges").vertex_only = False + layout.operator("mesh.bevel", text="Bevel Edges").affect = 'EDGES' layout.operator("mesh.bridge_edge_loops") layout.operator("mesh.screw") -- cgit v1.2.3