mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #35216: code examples like simple operator missing from python docs due to
rename of directory.
This commit is contained in:
parent
62087935ec
commit
02fd2d256d
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ For an overview of BMesh data types and how they reference each other see:
|
|||
Example Script
|
||||
--------------
|
||||
|
||||
.. literalinclude:: ../../../release/scripts/templates/bmesh_simple.py
|
||||
.. literalinclude:: ../../../release/scripts/templates_py/bmesh_simple.py
|
||||
|
||||
|
||||
Stand-Alone Module
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ In Python, this is done by defining a class, which is a subclass of an existing
|
|||
Example Operator
|
||||
----------------
|
||||
|
||||
.. literalinclude:: ../../../release/scripts/templates/operator_simple.py
|
||||
.. literalinclude:: ../../../release/scripts/templates_py/operator_simple.py
|
||||
|
||||
Once this script runs, ``SimpleOperator`` is registered with Blender and can be called from the operator search popup or added to the toolbar.
|
||||
|
||||
|
|
@ -318,7 +318,7 @@ Example Panel
|
|||
|
||||
Panels register themselves as a class, like an operator. Notice the extra **bl_** variables used to set the context they display in.
|
||||
|
||||
.. literalinclude:: ../../../release/scripts/templates/ui_panel_simple.py
|
||||
.. literalinclude:: ../../../release/scripts/templates_py/ui_panel_simple.py
|
||||
|
||||
To run the script:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue