Fix T101354: Cycles crash with baking and adaptive sampling

This commit is contained in:
Brecht Van Lommel 2022-09-26 21:13:23 +02:00
parent 58e78c1ffe
commit cc1105f01b
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #101354, Regression: baking procedural texture in more than 2048 pixels fails
1 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
#include "graph/node.h"
#include "scene/background.h"
#include "scene/bake.h"
#include "scene/film.h"
#include "scene/integrator.h"
#include "scene/scene.h"
@ -367,7 +368,9 @@ void TileManager::update(const BufferParams &params, const Scene *scene)
node_to_image_spec_atttributes(
&write_state_.image_spec, &denoise_params, ATTR_DENOISE_SOCKET_PREFIX);
if (adaptive_sampling.use) {
/* Not adaptive sampling overscan yet for baking, would need overscan also
* for buffers read from the output driver. */
if (adaptive_sampling.use && !scene->bake_manager->get_baking()) {
overscan_ = 4;
}
else {