diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-14 10:58:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-14 10:58:03 +0400 |
commit | 166a37532f00bc75f3b02e1ccbc82bf138d0ef75 (patch) | |
tree | 173f587890d649e466ce880b821de392310e0967 /doc/python_api/examples/bpy.types.Menu.1.py | |
parent | 93cf1531d05a341a3be715f41bb48bd6f665afb2 (diff) |
remove *.select_inverse operators where the *.select_all operator has an invert option.
Diffstat (limited to 'doc/python_api/examples/bpy.types.Menu.1.py')
-rw-r--r-- | doc/python_api/examples/bpy.types.Menu.1.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bpy.types.Menu.1.py b/doc/python_api/examples/bpy.types.Menu.1.py index 92c961e93d2..e82bf398e35 100644 --- a/doc/python_api/examples/bpy.types.Menu.1.py +++ b/doc/python_api/examples/bpy.types.Menu.1.py @@ -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 |