diff options
author | Tautvydas Andrikys <esminis> | 2020-05-14 18:41:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-05-14 18:56:50 +0300 |
commit | 33ce0cb5a1edea4b5aaa7d37f6ad74b3b35b95f8 (patch) | |
tree | bacf9e3a70ee28c8647491f3bcadd4f0d79ebcc3 /intern/cycles/render/shader.cpp | |
parent | 59404853698d01892ee5c609755ffad7ee57c3b9 (diff) |
Fix T63588: Cycles unnecessarily updates background importance sampling map
Diffstat (limited to 'intern/cycles/render/shader.cpp')
-rw-r--r-- | intern/cycles/render/shader.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp index 8403a636e1c..39ba45a751a 100644 --- a/intern/cycles/render/shader.cpp +++ b/intern/cycles/render/shader.cpp @@ -318,9 +318,11 @@ void Shader::tag_update(Scene *scene) * has use_mis set to false. We are quite close to release now, so * better to be safe. */ - if (this == scene->background->get_shader(scene) && - scene->light_manager->has_background_light(scene)) { - scene->light_manager->need_update = true; + if (this == scene->background->get_shader(scene)) { + scene->light_manager->need_update_background = true; + if (scene->light_manager->has_background_light(scene)) { + scene->light_manager->need_update = true; + } } /* quick detection of which kind of shaders we have to avoid loading |