diff options
Diffstat (limited to 'space_view3d_pie_menus/pie_modes_menu.py')
-rw-r--r-- | space_view3d_pie_menus/pie_modes_menu.py | 67 |
1 files changed, 5 insertions, 62 deletions
diff --git a/space_view3d_pie_menus/pie_modes_menu.py b/space_view3d_pie_menus/pie_modes_menu.py index 0b68c79e..bcaf4af6 100644 --- a/space_view3d_pie_menus/pie_modes_menu.py +++ b/space_view3d_pie_menus/pie_modes_menu.py @@ -178,57 +178,6 @@ class PIE_OT_ClassFace(Operator): return {'FINISHED'} -class PIE_OT_VertsEdges(Operator): - bl_idname = "verts.edges" - bl_label = "Verts Edges" - bl_description = "Vert/Edge Select Mode" - bl_options = {'REGISTER', 'UNDO'} - - def execute(self, context): - if context.object.mode != "EDIT": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT') - if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT') - bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='EDGE') - return {'FINISHED'} - - -class PIE_OT_EdgesFaces(Operator): - bl_idname = "edges.faces" - bl_label = "EdgesFaces" - bl_description = "Edge/Face Select Mode" - bl_options = {'REGISTER', 'UNDO'} - - def execute(self, context): - if context.object.mode != "EDIT": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE') - if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE') - bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='FACE') - return {'FINISHED'} - - -class PIE_OT_VertsFaces(Operator): - bl_idname = "verts.faces" - bl_label = "Verts Faces" - bl_description = "Vert/Face Select Mode" - bl_options = {'REGISTER', 'UNDO'} - - def execute(self, context): - if context.object.mode != "EDIT": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT') - if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE": - bpy.ops.object.mode_set(mode="EDIT") - bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT') - bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='FACE') - return {'FINISHED'} - - class PIE_OT_VertsEdgesFaces(Operator): bl_idname = "verts.edgesfaces" bl_label = "Verts Edges Faces" @@ -280,9 +229,6 @@ class PIE_MT_ObjectEditotherModes(Menu): box.operator("class.vertex", text="Vertex", icon='VERTEXSEL') box.operator("class.edge", text="Edge", icon='EDGESEL') box.operator("class.face", text="Face", icon='FACESEL') - box.operator("verts.faces", text="Vertex/Faces", icon='VERTEXSEL') - box.operator("verts.edges", text="Vertex/Edges", icon='EDGESEL') - box.operator("edges.faces", text="Edges/Faces", icon='FACESEL') box.operator("verts.edgesfaces", text="Vertex/Edges/Faces", icon='OBJECT_DATAMODE') @@ -309,17 +255,17 @@ class PIE_MT_ObjectEditMode(Menu): 'PARTICLE_EDIT', 'GPENCIL_EDIT'}: pie = layout.menu_pie() # 4 - LEFT - pie.operator("class.pievertexpaint", text="Vertex Paint", icon='VPAINT_HLT') + pie.operator("class.pieweightpaint", text="Weight Paint", icon='WPAINT_HLT') # 6 - RIGHT pie.operator("class.pietexturepaint", text="Texture Paint", icon='TPAINT_HLT') # 2 - BOTTOM - pie.menu("MENU_MT_objecteditmodeothermodes", text="Vert,Edge,Face Modes", icon='EDITMODE_HLT') + pie.menu("MENU_MT_objecteditmodeothermodes", text="Edit Modes", icon='EDITMODE_HLT') # 8 - TOP pie.operator("class.object", text="Object/Edit Toggle", icon='OBJECT_DATAMODE') # 7 - TOP - LEFT pie.operator("sculpt.sculptmode_toggle", text="Sculpt", icon='SCULPTMODE_HLT') # 9 - TOP - RIGHT - pie.operator("class.pieweightpaint", text="Weight Paint", icon='WPAINT_HLT') + pie.operator("class.pievertexpaint", text="Vertex Paint", icon='VPAINT_HLT') # 1 - BOTTOM - LEFT if context.object.particle_systems: pie.operator("class.pieparticleedit", text="Particle Edit", icon='PARTICLEMODE') @@ -332,7 +278,7 @@ class PIE_MT_ObjectEditMode(Menu): elif ob and ob.type == 'MESH' and ob.mode in {'EDIT'}: pie = layout.menu_pie() # 4 - LEFT - pie.operator("class.pievertexpaint", text="Vertex Paint", icon='VPAINT_HLT') + pie.operator("class.pieweightpaint", text="Weight Paint", icon='WPAINT_HLT') # 6 - RIGHT pie.operator("class.pietexturepaint", text="Texture Paint", icon='TPAINT_HLT') # 2 - BOTTOM @@ -342,7 +288,7 @@ class PIE_MT_ObjectEditMode(Menu): # 7 - TOP - LEFT pie.operator("sculpt.sculptmode_toggle", text="Sculpt", icon='SCULPTMODE_HLT') # 9 - TOP - RIGHT - pie.operator("class.pieweightpaint", text="Weight Paint", icon='WPAINT_HLT') + pie.operator("class.pievertexpaint", text="Vertex Paint", icon='VPAINT_HLT') # 1 - BOTTOM - LEFT if context.object.particle_systems: pie.operator("class.pieparticleedit", text="Particle Edit", icon='PARTICLEMODE') @@ -484,9 +430,6 @@ classes = ( PIE_OT_ClassVertexPaint, PIE_OT_ClassParticleEdit, PIE_OT_InteractiveModeGreasePencil, - PIE_OT_VertsEdges, - PIE_OT_EdgesFaces, - PIE_OT_VertsFaces, PIE_OT_VertsEdgesFaces, PIE_OT_SetObjectModePie, ) |