diff options
author | Thomas Dinges <blender@dingto.org> | 2014-09-11 17:02:19 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-09-11 17:02:19 +0400 |
commit | 89b62804dcba7167c332b5f1d71f4a88e02b1781 (patch) | |
tree | 2347e10cd9b8cfd8025fdff07baba1e61c5490a0 /intern/cycles | |
parent | 61e58c378a4676dea439f12851512ea9282e5d68 (diff) |
Followup for last commit, we can break the loop, once we have a match.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/integrator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp index ec2960d15e1..03a8cd5d2d3 100644 --- a/intern/cycles/render/integrator.cpp +++ b/intern/cycles/render/integrator.cpp @@ -99,8 +99,10 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene if(transparent_shadows) { foreach(Shader *shader, scene->shaders) { /* keep this in sync with SD_HAS_TRANSPARENT_SHADOW in shader.cpp */ - if((shader->has_surface_transparent && shader->use_transparent_shadow) || shader->has_volume) + if((shader->has_surface_transparent && shader->use_transparent_shadow) || shader->has_volume) { kintegrator->transparent_shadows = true; + break; + } } } else { |