[Bf-blender-cvs] [a9c607e60eb] master: PyAPI Docs: Fix wrong modifier path usage
Aaron Carlisle
noreply at git.blender.org
Thu Jan 7 00:55:00 CET 2021
Commit: a9c607e60ebfbb669694bda132af31734da9b709
Author: Aaron Carlisle
Date: Wed Jan 6 18:54:56 2021 -0500
Branches: master
https://developer.blender.org/rBa9c607e60ebfbb669694bda132af31734da9b709
PyAPI Docs: Fix wrong modifier path usage
Fixes T84430
===================================================================
M doc/python_api/rst/info_api_reference.rst
===================================================================
diff --git a/doc/python_api/rst/info_api_reference.rst b/doc/python_api/rst/info_api_reference.rst
index f62b81f43f2..0de977aaaa7 100644
--- a/doc/python_api/rst/info_api_reference.rst
+++ b/doc/python_api/rst/info_api_reference.rst
@@ -163,13 +163,13 @@ Now in the button's context menu select *Copy Data Path*, then paste the result
.. code-block:: python
- bpy.context.active_object.modifiers["Subsurf"].levels
+ bpy.context.active_object.modifiers["Subdivision"].levels
Press :kbd:`Return` and you'll get the current value of 1. Now try changing the value to 2:
.. code-block:: python
- bpy.context.active_object.modifiers["Subsurf"].levels = 2
+ bpy.context.active_object.modifiers["Subdivision"].levels = 2
You can see the value update in the Subdivision Surface modifier's UI as well as the cube.
More information about the Bf-blender-cvs
mailing list