[Bf-blender-cvs] [65f739a7000] master: UI: expose vertex merge as menu
Campbell Barton
noreply at git.blender.org
Thu May 2 03:59:38 CEST 2019
Commit: 65f739a7000112724c2e10a77d6060eae14d86b5
Author: Campbell Barton
Date: Thu May 2 11:56:24 2019 +1000
Branches: master
https://developer.blender.org/rB65f739a7000112724c2e10a77d6060eae14d86b5
UI: expose vertex merge as menu
Avoids a pop-up after the first click.
===================================================================
M 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 9bf2df58b07..c6674bf34d1 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -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()
More information about the Bf-blender-cvs
mailing list