diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-12-09 20:17:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-12-09 20:17:48 +0300 |
commit | ad44f22397b07109eadc677032804db57fa9838a (patch) | |
tree | aba264d5c90e83ef3d2eac6a13590531c2af986e | |
parent | 4b00a779ecf8173c476e3c9356576d56098da62d (diff) |
Fix T93498: Cycles fast GI add method affected by bounces settings
This is only for the replace method.
-rw-r--r-- | intern/cycles/scene/integrator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/scene/integrator.cpp b/intern/cycles/scene/integrator.cpp index 31e645c1f3a..31901707c35 100644 --- a/intern/cycles/scene/integrator.cpp +++ b/intern/cycles/scene/integrator.cpp @@ -180,7 +180,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene kintegrator->transparent_min_bounce = transparent_min_bounce + 1; kintegrator->transparent_max_bounce = transparent_max_bounce + 1; - kintegrator->ao_bounces = ao_bounces; + kintegrator->ao_bounces = (ao_factor != 0.0f) ? ao_bounces : 0; kintegrator->ao_bounces_distance = ao_distance; kintegrator->ao_bounces_factor = ao_factor; kintegrator->ao_additive_factor = ao_additive_factor; |