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>2016-01-07 20:07:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-07 20:07:20 +0300
commit8965586151e536631dfd7f9fdf2cd0b12643da22 (patch)
tree79a5442757da4bef8571bcafa0089fb146efd9e4 /release
parent5d118f6dd7da829406de3ec0fae6239d0a2b4d7d (diff)
Editmesh select sub-menu 'Select All by Trait'
Similar to object mode 'Select All by Type', This menu is for various options to select based on some rules. Moving into a submenu removes clutter, and means we can add other selection types.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py28
1 files changed, 19 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 4dc4b667a63..3a13eea47b7 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -666,6 +666,22 @@ class VIEW3D_MT_edit_mesh_select_similar(Menu):
layout.operator("mesh.select_similar_region", text="Face Regions")
+class VIEW3D_MT_edit_mesh_select_by_trait(Menu):
+ bl_label = "Select All by Trait"
+
+ def draw(self, context):
+ layout = self.layout
+ if context.scene.tool_settings.mesh_select_mode[2] is False:
+ layout.operator("mesh.select_non_manifold", text="Non Manifold")
+ layout.operator("mesh.select_loose", text="Loose Geometry")
+ layout.operator("mesh.select_interior_faces", text="Interior Faces")
+ layout.operator("mesh.select_face_by_sides")
+
+ layout.separator()
+
+ layout.operator("mesh.select_ungrouped", text="Ungrouped Verts")
+
+
class VIEW3D_MT_select_edit_mesh(Menu):
bl_label = "Select"
@@ -695,18 +711,12 @@ class VIEW3D_MT_select_edit_mesh(Menu):
layout.separator()
- # topology
- layout.operator("mesh.select_loose", text="Loose Geometry")
- if context.scene.tool_settings.mesh_select_mode[2] is False:
- layout.operator("mesh.select_non_manifold", text="Non Manifold")
- layout.operator("mesh.select_interior_faces", text="Interior Faces")
- layout.operator("mesh.select_face_by_sides")
+ # other ...
+ layout.menu("VIEW3D_MT_edit_mesh_select_similar")
layout.separator()
- # other ...
- layout.menu("VIEW3D_MT_edit_mesh_select_similar")
- layout.operator("mesh.select_ungrouped", text="Ungrouped Verts")
+ layout.menu("VIEW3D_MT_edit_mesh_select_by_trait")
layout.separator()