Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-14 10:58:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-14 10:58:03 +0400
commit166a37532f00bc75f3b02e1ccbc82bf138d0ef75 (patch)
tree173f587890d649e466ce880b821de392310e0967 /doc
parent93cf1531d05a341a3be715f41bb48bd6f665afb2 (diff)
remove *.select_inverse operators where the *.select_all operator has an invert option.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.types.Menu.1.py4
-rw-r--r--doc/python_api/examples/bpy.types.Menu.py4
-rw-r--r--doc/python_api/examples/bpy.types.Panel.1.py4
3 files changed, 6 insertions, 6 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
diff --git a/doc/python_api/examples/bpy.types.Menu.py b/doc/python_api/examples/bpy.types.Menu.py
index e8c4a2aa072..4ca18a67b78 100644
--- a/doc/python_api/examples/bpy.types.Menu.py
+++ b/doc/python_api/examples/bpy.types.Menu.py
@@ -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")
diff --git a/doc/python_api/examples/bpy.types.Panel.1.py b/doc/python_api/examples/bpy.types.Panel.1.py
index ab32a043706..cd85d30cea0 100644
--- a/doc/python_api/examples/bpy.types.Panel.1.py
+++ b/doc/python_api/examples/bpy.types.Panel.1.py
@@ -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")