forked from bartvdbraak/blender
Add Face Region to 'Select-Similar' menu
This commit is contained in:
parent
95be98dd43
commit
5488630047
@ -608,6 +608,19 @@ class VIEW3D_MT_select_particle(Menu):
|
||||
layout.operator("particle.select_tips", text="Tips")
|
||||
|
||||
|
||||
class VIEW3D_MT_edit_mesh_select_similar(Menu):
|
||||
bl_label = "Select Similar"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator_enum("mesh.select_similar", "type")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("mesh.select_similar_region", text="Face Regions")
|
||||
|
||||
|
||||
class VIEW3D_MT_select_edit_mesh(Menu):
|
||||
bl_label = "Select"
|
||||
|
||||
@ -647,7 +660,7 @@ class VIEW3D_MT_select_edit_mesh(Menu):
|
||||
layout.separator()
|
||||
|
||||
# other ...
|
||||
layout.operator_menu_enum("mesh.select_similar", "type", text="Similar")
|
||||
layout.menu("VIEW3D_MT_edit_mesh_select_similar")
|
||||
layout.operator("mesh.select_ungrouped", text="Ungrouped Verts")
|
||||
|
||||
layout.separator()
|
||||
|
@ -343,7 +343,7 @@ void ED_keymap_mesh(wmKeyConfig *keyconf)
|
||||
|
||||
WM_keymap_add_item(keymap, "MESH_OT_faces_select_linked_flat", FKEY, KM_PRESS, (KM_CTRL | KM_SHIFT | KM_ALT), 0);
|
||||
|
||||
WM_keymap_add_item(keymap, "MESH_OT_select_similar", GKEY, KM_PRESS, KM_SHIFT, 0);
|
||||
WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_select_similar", GKEY, KM_PRESS, KM_SHIFT, 0);
|
||||
|
||||
/* selection mode */
|
||||
WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_select_mode", TABKEY, KM_PRESS, KM_CTRL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user