Fix #114415: USDZ conversion happens outside of main thread. #114420

Merged
Bastien Montagne merged 1 commits from mont29/blender:tmp-fix-114415-usdz-export into blender-v4.0-release 2023-11-03 10:56:05 +01:00

1 Commits

Author SHA1 Message Date
Bastien Montagne 31bd2a0f64 Fix #114415: USDZ conversion happens outside of main thread.
USDZ conversion currently requires to change the 'current working
directory', due to internal USD library limitations.

This can only be done from main thread (and is highly discouraged in
general). This implies that USDZ conversion cannot happen from the Job
worker thread.

This commit moves it to the `endjob` callback of the USD export job
instead, as it is guaranteed to be executed from caller thread, i.e.
main thread in this case.
2023-11-03 10:49:36 +01:00