Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-09-27 12:30:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-27 12:31:50 +0400
commit5488630047497f77f1cfd44717a8c3c1344ff7dd (patch)
tree4bc13dd6e5c3cc1b3b42c450e4799dbf39a38d93
parent95be98dd4325668c7e3af9eae38b6370d31e687e (diff)
Add Face Region to 'Select-Similar' menu
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py15
-rw-r--r--source/blender/editors/mesh/mesh_ops.c2
2 files changed, 15 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 3d0e767f5e1..2249d2b04b8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -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()
diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c
index 5f3af733ebd..e7dc5a69d53 100644
--- a/source/blender/editors/mesh/mesh_ops.c
+++ b/source/blender/editors/mesh/mesh_ops.c
@@ -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);