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>2020-10-09 04:14:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-09 04:14:22 +0300
commitdecb3b10aadc312aac8c15c66deb4f9f1822ab11 (patch)
tree1087856bb60c7352440d5a24faf5de130a13ba1a /doc
parentafc090f339355f55bc13eb810676358b435cf56a (diff)
Cleanup: operator execution types didn't read well on one line
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.ops.2.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/python_api/examples/bpy.ops.2.py b/doc/python_api/examples/bpy.ops.2.py
index 5f98c8a6656..d8ddb848669 100644
--- a/doc/python_api/examples/bpy.ops.2.py
+++ b/doc/python_api/examples/bpy.ops.2.py
@@ -9,15 +9,24 @@ When calling an operator you may want to pass the execution context.
This determines the context that is given for the operator to run in, and whether
invoke() is called or only execute().
-'EXEC_DEFAULT' is used by default, running only the execute() method, but you may
-want the operator to take user interaction with 'INVOKE_DEFAULT' which will also
+``EXEC_DEFAULT`` is used by default, running only the ``execute()`` method, but you may
+want the operator to take user interaction with ``INVOKE_DEFAULT`` which will also
call invoke() if existing.
The execution context is one of:
-('INVOKE_DEFAULT', 'INVOKE_REGION_WIN', 'INVOKE_REGION_CHANNELS',
-'INVOKE_REGION_PREVIEW', 'INVOKE_AREA', 'INVOKE_SCREEN', 'EXEC_DEFAULT',
-'EXEC_REGION_WIN', 'EXEC_REGION_CHANNELS', 'EXEC_REGION_PREVIEW', 'EXEC_AREA',
-'EXEC_SCREEN')
+
+- ``INVOKE_DEFAULT``
+- ``INVOKE_REGION_WIN``
+- ``INVOKE_REGION_CHANNELS``
+- ``INVOKE_REGION_PREVIEW``
+- ``INVOKE_AREA``
+- ``INVOKE_SCREEN``
+- ``EXEC_DEFAULT``
+- ``EXEC_REGION_WIN``
+- ``EXEC_REGION_CHANNELS``
+- ``EXEC_REGION_PREVIEW``
+- ``EXEC_AREA``
+- ``EXEC_SCREEN``
"""
# collection add popup