diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-04 15:36:53 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-04 15:39:51 +0300 |
commit | 33e8db94b1e7df2bd7fdbf15b96368c8d16d3b4e (patch) | |
tree | 949716a11cd46cf023cf0340dd42077f86843a04 /doc/python_api/rst/info_gotcha.rst | |
parent | 1d2e4c44bddeb21e04f6ef73b96b51a759a3352e (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/python_api/rst/info_gotcha.rst')
-rw-r--r-- | doc/python_api/rst/info_gotcha.rst | 6 |
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? |