UI: Add Split and Separate to the mesh editing context menus
authorWilliam Reynish <billrey@me.com>
Sat, 4 May 2019 13:12:20 +0000 (15:12 +0200)
committerWilliam Reynish <billrey@me.com>
Sat, 4 May 2019 13:12:20 +0000 (15:12 +0200)
release/scripts/startup/bl_ui/space_view3d.py

index c6f104b..6eee784 100644 (file)
@@ -3359,6 +3359,8 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
             # Removal Operators
             if selected_verts_len > 1:
                 col.menu("VIEW3D_MT_edit_mesh_merge", text="Merge Vertices")
+            col.operator("mesh.split")
+            col.operator_menu_enum("mesh.separate", "type")
             col.operator("mesh.dissolve_verts")
             col.operator("mesh.delete", text="Delete Vertices").type = 'VERT'
 
@@ -3424,6 +3426,8 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
 
             # Removal Operators
             col.operator("mesh.unsubdivide")
+            col.operator("mesh.split")
+            col.operator_menu_enum("mesh.separate", "type")
             col.operator("mesh.dissolve_edges")
             col.operator("mesh.delete", text="Delete Edges").type = 'EDGE'
 
@@ -3468,6 +3472,8 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
 
             # Removal Operators
             col.operator("mesh.unsubdivide")
+            col.operator("mesh.split")
+            col.operator_menu_enum("mesh.separate", "type")
             col.operator("mesh.dissolve_faces")
             col.operator("mesh.delete", text="Delete Faces").type = 'FACE'