Fix #70114: Cycles: Particle systems missing in headless multiview render #120543

Merged
Lukas Stockner merged 1 commits from LukasStockner/blender:fix-instance-cache into main 2024-04-15 17:41:05 +02:00

1 Commits

Author SHA1 Message Date
Lukas Stockner 2353dd1fdc Fix #70114: Cycles: Particle systems missing in headless multiview render
The problem here was that free_data_after_sync frees the particle cache
in headless or locked-UI mode, but the second view doesn't regenerate them.

For multi-view renders, there's no point in dropping the cache if we'll
render another view anyways, so just keep it until the last view.

Since free_data_after_sync doesn't do anything for baking or viewport
renders anyways, it's easiest to just move this out into BlenderSession::render
since that already checks whether another view is still outstanding.
2024-04-12 01:23:22 +02:00