UI: expose vertex merge as menu
authorCampbell Barton <ideasman42@gmail.com>
Thu, 2 May 2019 01:56:24 +0000 (11:56 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 2 May 2019 01:59:12 +0000 (11:59 +1000)
Avoids a pop-up after the first click.

release/scripts/startup/bl_ui/space_view3d.py

index 9bf2df5..c6674bf 100644 (file)
@@ -3358,7 +3358,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
 
             # Removal Operators
             if selected_verts_len > 1:
-                col.operator("mesh.merge", text="Merge Vertices...")
+                col.operator_menu_enum("mesh.merge", "type", text="Merge Vertices")
                 col.operator("mesh.remove_doubles", text="Remove Double Vertices")
             col.operator("mesh.dissolve_verts")
             col.operator("mesh.delete", text="Delete Vertices").type = 'VERT'
@@ -3562,7 +3562,7 @@ class VIEW3D_MT_edit_mesh_vertices(Menu):
 
         layout.separator()
 
-        layout.operator("mesh.merge", text="Merge Vertices")
+        layout.operator_menu_enum("mesh.merge", "type", text="Merge Vertices")
         layout.operator("mesh.remove_doubles", text="Remove Double Vertices")
 
         layout.separator()