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/light.h | |
parent | 59404853698d01892ee5c609755ffad7ee57c3b9 (diff) |
Fix T63588: Cycles unnecessarily updates background importance sampling map
Diffstat (limited to 'intern/cycles/render/light.h')
-rw-r--r-- | intern/cycles/render/light.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/render/light.h b/intern/cycles/render/light.h index 4f3048c1f32..1a99b2b76ae 100644 --- a/intern/cycles/render/light.h +++ b/intern/cycles/render/light.h @@ -88,6 +88,9 @@ class LightManager { bool use_light_visibility; bool need_update; + /* Need to update background (including multiple importance map) */ + bool need_update_background; + LightManager(); ~LightManager(); @@ -97,7 +100,7 @@ class LightManager { void remove_ies(int slot); void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress &progress); - void device_free(Device *device, DeviceScene *dscene); + void device_free(Device *device, DeviceScene *dscene, const bool free_background = true); void tag_update(Scene *scene); |