Files
test2/source
Philipp Oeser 8044f531c7 Fix #131107: Grease Pencil: Crash doing Grease Pencil Surface Reproject
Implemented in 4291ab855c
Fixed in c20399442d (even though that commit introduced the crash)

The crash happens because we are dealing with multiple
`DrawingPlacement` (using the constructor from c20399442d which allows
for passing in cached depths) in **threads**. The depth_cache gets freed
in the destructor of  `DrawingPlacement` though, thus ruining the data
for a `DrawingPlacement` in another thread.

To resolve, pass in a copy of the depths.

Pull Request: https://projects.blender.org/blender/blender/pulls/131356
2024-12-05 10:35:24 +01:00
..