mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
remove *.select_inverse operators where the *.select_all operator has an invert option.
This commit is contained in:
parent
93cf1531d0
commit
166a37532f
23 changed files with 21 additions and 257 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue