From 292c2cefe30b3b4798324e0f04e3a4a529829c94 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 10 Jan 2022 16:05:17 +0100 Subject: Fix T93727: Tiled render error in Cycles after changing temp directory 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 (engine.temp_directory). Differential Revision: https://developer.blender.org/D13790 --- intern/cycles/session/session.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles/session/session.h') diff --git a/intern/cycles/session/session.h b/intern/cycles/session/session.h index 3f73593f008..adfd1346600 100644 --- a/intern/cycles/session/session.h +++ b/intern/cycles/session/session.h @@ -69,6 +69,9 @@ class SessionParams { ShadingSystem shadingsystem; + /* Session-specific temporary directory to store in-progress EXR files in. */ + string temp_dir; + SessionParams() { headless = false; -- cgit v1.2.3