bdk-blender/source/blender/io
Bastien Montagne 127f76751d Fix USD Export crash with complex scenes, due to race condition during depsgraph building.
Building the depsgraph from non-main thread is unsafe currently, as it
may trigger some deferred processing on the Main data itself (here, the
update/resync of viewlayer collections).

So this commit moves the building of the export depsgraph back into the
main thread for the USD exporter, while keeping the depsgraph evaluation
code (which is typically the heavy part with complex scenes) into the
threaded job worker code.

Issue was randomly (but fairly commonly) reproducible when trying to export
most of the Pets project production files (on linux debug build with ASAN).

Root issue has been reported and is being discussed in #112534, ideally a
better solution can be designed at depsgraph level in the future.

NOTE: Should likely also be back-ported to 3.6 and 3.3 LTS.

Pull Request: blender/blender#113537
2023-11-14 13:47:28 +01:00
..
alembic Fix T100883: crash with particle instancing and clumping 2022-11-28 14:29:02 +01:00
avi Cleanup: spelling in comments 2022-06-03 15:08:11 +10:00
collada Fix T100737: OBJ/USD import: imported object has no active material, material has 2 users 2022-09-01 20:38:56 +03:00
common Cleanup: Clang tidy 2022-06-22 18:58:25 -05:00
gpencil GPencil: Fix compiler warning 2022-11-28 12:41:30 +01:00
stl Fix C++ STL importer unused function result warning 2022-06-30 10:14:08 +02:00
usd Fix USD Export crash with complex scenes, due to race condition during depsgraph building. 2023-11-14 13:47:28 +01:00
wavefront_obj Fix OBJ tests using release folder 2023-03-30 19:59:56 +02:00
CMakeLists.txt CMake: optionally disable OBJ, STL & GPencil SVG support 2022-06-08 13:29:32 +10:00