diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-09-10 11:57:05 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-09-10 12:03:54 +0300 |
commit | fe4286435c54b3ba0a031f032b95615da74a7aac (patch) | |
tree | b118d6583176209e6a07c9781b484b622741abd3 /source/blender/depsgraph/CMakeLists.txt | |
parent | 93d2940603121acc47ea9860dac98e4e63c8f1d3 (diff) |
Depsgraph: release GIL when evaluating the depsgraph
Evaluating the dependency graph potentially executes Python code when
evaluating drivers. In specific situations (see T91046) this could
deadlock Blender entirely. Temporarily releasing the GIL when evaluating
the depsgraph resolves this.
This is an improved version of
rBfc460351170478e712740ae1917a2e24803eba3b, thanks @brecht for the diff!
Manifest task: T91046
Diffstat (limited to 'source/blender/depsgraph/CMakeLists.txt')
-rw-r--r-- | source/blender/depsgraph/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/depsgraph/CMakeLists.txt b/source/blender/depsgraph/CMakeLists.txt index 3ad26c6f4db..41253117096 100644 --- a/source/blender/depsgraph/CMakeLists.txt +++ b/source/blender/depsgraph/CMakeLists.txt @@ -161,6 +161,13 @@ set(LIB bf_blenkernel ) +if(WITH_PYTHON) + add_definitions(-DWITH_PYTHON) + list(APPEND INC + ../python + ) +endif() + blender_add_lib(bf_depsgraph "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") if(WITH_GTESTS) |