remove *.select_inverse operators where the *.select_all operator has an invert option.

This commit is contained in:
Campbell Barton
2012-01-14 06:58:03 +00:00
parent 93cf1531d0
commit 166a37532f
23 changed files with 21 additions and 257 deletions

View File

@@ -13,8 +13,8 @@ class SubMenu(bpy.types.Menu):
def draw(self, context):
layout = self.layout
layout.operator("object.select_all", text="Select/Deselect All")
layout.operator("object.select_inverse", text="Inverse")
layout.operator("object.select_all", text="Select/Deselect All").action = 'TOGGLE'
layout.operator("object.select_all", text="Inverse").action = 'INVERT'
layout.operator("object.select_random", text="Random")
# access this operator as a submenu

View File

@@ -27,8 +27,8 @@ class BasicMenu(bpy.types.Menu):
def draw(self, context):
layout = self.layout
layout.operator("object.select_all", text="Select/Deselect All")
layout.operator("object.select_inverse", text="Inverse")
layout.operator("object.select_all", text="Select/Deselect All").action = 'TOGGLE'
layout.operator("object.select_all", text="Inverse").action = 'INVERT'
layout.operator("object.select_random", text="Random")

View File

@@ -34,9 +34,9 @@ class ObjectSelectPanel(bpy.types.Panel):
box = layout.box()
box.label("Selection Tools")
box.operator("object.select_all")
box.operator("object.select_all").action = 'TOGGLE'
row = box.row()
row.operator("object.select_inverse")
row.operator("object.select_all").action = 'INVERT'
row.operator("object.select_random")