[Bf-blender-cvs] [8965586] master: Editmesh select sub-menu 'Select All by Trait'
Campbell Barton
noreply at git.blender.org
Thu Jan 7 18:25:18 CET 2016
Commit: 8965586151e536631dfd7f9fdf2cd0b12643da22
Author: Campbell Barton
Date: Fri Jan 8 04:07:20 2016 +1100
Branches: master
https://developer.blender.org/rB8965586151e536631dfd7f9fdf2cd0b12643da22
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.
===================================================================
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 4dc4b66..3a13eea 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()
More information about the Bf-blender-cvs
mailing list