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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-06-04 15:36:53 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-06-04 15:39:51 +0300
commit33e8db94b1e7df2bd7fdbf15b96368c8d16d3b4e (patch)
tree949716a11cd46cf023cf0340dd42077f86843a04 /doc
parent1d2e4c44bddeb21e04f6ef73b96b51a759a3352e (diff)
Fix (unreported) missing updates in scripts/docs after `scene.update()` removal.
This should really have been done together with API changes, simple usage of grep does the trick to catch most places needing updates.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/info_gotcha.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/python_api/rst/info_gotcha.rst b/doc/python_api/rst/info_gotcha.rst
index fd978e235c1..df4cd0d256b 100644
--- a/doc/python_api/rst/info_gotcha.rst
+++ b/doc/python_api/rst/info_gotcha.rst
@@ -102,16 +102,16 @@ To avoid expensive recalculations every time a property is modified,
Blender defers making the actual calculations until they are needed.
However, while the script runs you may want to access the updated values.
-In this case you need to call :class:`bpy.types.Scene.update` after modifying values, for example:
+In this case you need to call :class:`bpy.types.ViewLayer.update` after modifying values, for example:
.. code-block:: python
bpy.context.object.location = 1, 2, 3
- bpy.context.scene.update()
+ bpy.context.view_layer.update()
Now all dependent data (child objects, modifiers, drivers... etc)
-has been recalculated and is available to the script.
+has been recalculated and is available to the script within active view layer.
Can I redraw during the script?