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 <bastien@blender.org>2022-08-12 17:23:28 +0300
committerBastien Montagne <bastien@blender.org>2022-08-12 17:23:28 +0300
commit6c6e59e846cfebfa946e95f434342223bb017e1b (patch)
treee8f65830604d68ef2f8005a0ca83913ebbaf2536 /doc
parentd13ed3c1575c5bc840c322ef7fc86b6b8505d450 (diff)
parentfd57f520acb119036edc61bf991e0b34c7026fe5 (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.props.4.py4
-rw-r--r--doc/python_api/examples/bpy.props.5.py4
-rw-r--r--doc/python_api/examples/bpy.props.py9
3 files changed, 17 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.props.4.py b/doc/python_api/examples/bpy.props.4.py
index daab18c8986..93e4a9fda62 100644
--- a/doc/python_api/examples/bpy.props.4.py
+++ b/doc/python_api/examples/bpy.props.4.py
@@ -6,6 +6,10 @@ It can be useful to perform an action when a property is changed and can be
used to update other properties or synchronize with external data.
All properties define update functions except for CollectionProperty.
+
+.. warning::
+ Remember that these callbacks may be executed in threaded context.
+
"""
import bpy
diff --git a/doc/python_api/examples/bpy.props.5.py b/doc/python_api/examples/bpy.props.5.py
index c428b4743f8..49853168661 100644
--- a/doc/python_api/examples/bpy.props.5.py
+++ b/doc/python_api/examples/bpy.props.5.py
@@ -6,6 +6,10 @@ Getter/setter functions can be used for boolean, int, float, string and enum pro
If these callbacks are defined the property will not be stored in the ID properties
automatically. Instead, the `get` and `set` functions will be called when the property
is respectively read or written from the API.
+
+.. warning::
+ Remember that these callbacks may be executed in threaded context.
+
"""
import bpy
diff --git a/doc/python_api/examples/bpy.props.py b/doc/python_api/examples/bpy.props.py
index d19b57b13a5..a2a51addc65 100644
--- a/doc/python_api/examples/bpy.props.py
+++ b/doc/python_api/examples/bpy.props.py
@@ -7,6 +7,15 @@ Custom properties can be added to any subclass of an :class:`ID`,
These properties can be animated, accessed by the user interface and python
like Blender's existing properties.
+
+.. warning::
+
+ Access to these properties might happen in threaded context, on a per-data-block level.
+ This has to be carefully considered when using accessors or update callbacks.
+
+ Typically, these callbacks should not affect any other data that the one owned by their data-block.
+ When accessing external non-Blender data, thread safety mechanisms should be considered.
+
"""
import bpy