Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-09-11 17:02:19 +0400
committerThomas Dinges <blender@dingto.org>2014-09-11 17:02:19 +0400
commit89b62804dcba7167c332b5f1d71f4a88e02b1781 (patch)
tree2347e10cd9b8cfd8025fdff07baba1e61c5490a0 /intern
parent61e58c378a4676dea439f12851512ea9282e5d68 (diff)
Followup for last commit, we can break the loop, once we have a match.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/integrator.cpp4
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 {