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.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user