Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 3,853 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| layout.operator("mesh.select_mode", text="Face", icon='FACESEL').type = 'FACE' | layout.operator("mesh.select_mode", text="Face", icon='FACESEL').type = 'FACE' | ||||
| class VIEW3D_MT_edit_mesh_extrude(Menu): | class VIEW3D_MT_edit_mesh_extrude(Menu): | ||||
| bl_label = "Extrude" | bl_label = "Extrude" | ||||
| _extrude_funcs = { | _extrude_funcs = { | ||||
| 'VERT': lambda layout: | 'VERT': lambda layout: | ||||
| layout.operator("mesh.extrude_repeat", text="Extrude Array") | | |||||
| layout.operator("mesh.extrude_vertices_move", text="Extrude Vertices"), | layout.operator("mesh.extrude_vertices_move", text="Extrude Vertices"), | ||||
| 'EDGE': lambda layout: | 'EDGE': lambda layout: | ||||
| layout.operator("mesh.extrude_edges_move", text="Extrude Edges"), | layout.operator("mesh.extrude_edges_move", text="Extrude Edges"), | ||||
| 'REGION': lambda layout: | 'REGION': lambda layout: | ||||
| layout.operator("view3d.edit_mesh_extrude_move_normal", text="Extrude Faces"), | layout.operator("view3d.edit_mesh_extrude_move_normal", text="Extrude Faces"), | ||||
| 'REGION_VERT_NORMAL': lambda layout: | 'REGION_VERT_NORMAL': lambda layout: | ||||
| layout.operator("view3d.edit_mesh_extrude_move_shrink_fatten", text="Extrude Faces Along Normals"), | layout.operator("view3d.edit_mesh_extrude_move_shrink_fatten", text="Extrude Faces Along Normals"), | ||||
| 'FACE': lambda layout: | 'FACE': lambda layout: | ||||
| ▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| props.MESH_OT_rip.use_fill = True | props.MESH_OT_rip.use_fill = True | ||||
| layout.operator("mesh.rip_edge_move", text="Rip Vertices and Extend") | layout.operator("mesh.rip_edge_move", text="Rip Vertices and Extend") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("transform.vert_slide", text="Slide Vertices") | layout.operator("transform.vert_slide", text="Slide Vertices") | ||||
| layout.operator_context = 'EXEC_DEFAULT' | layout.operator_context = 'EXEC_DEFAULT' | ||||
| layout.operator("mesh.vertices_smooth", text="Smooth Vertices").factor = 0.5 | layout.operator("mesh.vertices_smooth", text="Smooth Vertices").factor = 0.5 | ||||
| layout.operator("mesh.vertices_smooth_laplacian", text="Smooth Vertices (Laplacian)") | |||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("mesh.blend_from_shape") | layout.operator("mesh.blend_from_shape") | ||||
| layout.operator("mesh.shape_propagate_to_all", text="Propagate to Shapes") | layout.operator("mesh.shape_propagate_to_all", text="Propagate to Shapes") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| with_freestyle = bpy.app.build_options.freestyle | with_freestyle = bpy.app.build_options.freestyle | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.operator("mesh.extrude_edges_move", text="Extrude Edges") | 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").vertex_only = False | ||||
| layout.operator("mesh.bridge_edge_loops") | layout.operator("mesh.bridge_edge_loops") | ||||
| layout.operator("mesh.screw") | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator("mesh.subdivide") | layout.operator("mesh.subdivide") | ||||
| layout.operator("mesh.subdivide_edgering") | layout.operator("mesh.subdivide_edgering") | ||||
| layout.operator("mesh.unsubdivide") | layout.operator("mesh.unsubdivide") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 3,521 Lines • Show Last 20 Lines | |||||