Fix T101354: Cycles crash with baking and adaptive sampling
This commit is contained in:
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
|
@ -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 ¶ms, 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 {
|
||||
|
|
Loading…
Reference in New Issue