Page MenuHome

Fix T93727: Tiled render error in Cycles after changing temp directory
ClosedPublic

Authored by Sergey Sharybin (sergey) on Jan 10 2022, 4:08 PM.

Details

Summary

Consider temporary directory to be variant part of session configuration
which gets communicated to the tile manager on render reset.

This allows to be able to render with one temp directory, change the
directory, render again and have proper render result even with enabled
persistent data.

For the ease of access to the temp directory expose it via the render
engine API.

Diff Detail

Repository
rB Blender
Branch
fix_cycles_tempdir (branched from master)
Build Status
Buildable 19863
Build 19863: arc lint + arc unit

Event Timeline

Sergey Sharybin (sergey) requested review of this revision.Jan 10 2022, 4:08 PM
Sergey Sharybin (sergey) created this revision.
Brecht Van Lommel (brecht) requested changes to this revision.Jan 10 2022, 4:22 PM

I guess this still fails when changing the temporary directory in the middle of rendering, as Blender will delete the old directory.

We could delay deleting non-empty temp directories until Blender closes. Not sure if that's worth it, or would be considered something to fix at all.

source/blender/makesrna/intern/rna_render.c
874

I don't think this should be abbreviated, we have temporary_directory in the preferences so I would use that.

875

I don't think we have to mention (read-only), we don't have it for other properties like resolution either.

This revision now requires changes to proceed.Jan 10 2022, 4:22 PM

Made naming and description more consistent with RNA

P.S. Previous name and docstring was copied from bpy.app.tempdir ;)

This revision is now accepted and ready to land.Jan 10 2022, 4:41 PM