[Bf-blender-cvs] [b30df982d2a] master: Fix viewport denoising not working if start samples higher than total samples

Brecht Van Lommel noreply at git.blender.org
Thu Jun 25 13:06:12 CEST 2020


Commit: b30df982d2a47af5536c68df6bdca07de09fa561
Author: Brecht Van Lommel
Date:   Thu Jun 25 11:46:32 2020 +0200
Branches: master
https://developer.blender.org/rBb30df982d2a47af5536c68df6bdca07de09fa561

Fix viewport denoising not working if start samples higher than total samples

===================================================================

M	intern/cycles/render/session.cpp

===================================================================

diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp
index c7531adcaf4..8c36d34aeea 100644
--- a/intern/cycles/render/session.cpp
+++ b/intern/cycles/render/session.cpp
@@ -1135,7 +1135,7 @@ bool Session::render_need_denoise(bool &delayed)
   }
 
   /* Do not denoise until the sample at which denoising should start is reached. */
-  if (tile_manager.state.sample < params.denoising.start_sample) {
+  if (tile_manager.state.sample < min(params.denoising.start_sample, params.samples - 1)) {
     return false;
   }



More information about the Bf-blender-cvs mailing list