[Bf-blender-cvs] [89b6280] master: Followup for last commit, we can break the loop, once we have a match.
Thomas Dinges
noreply at git.blender.org
Thu Sep 11 15:02:42 CEST 2014
Commit: 89b62804dcba7167c332b5f1d71f4a88e02b1781
Author: Thomas Dinges
Date: Thu Sep 11 15:02:19 2014 +0200
Branches: master
https://developer.blender.org/rB89b62804dcba7167c332b5f1d71f4a88e02b1781
Followup for last commit, we can break the loop, once we have a match.
===================================================================
M intern/cycles/render/integrator.cpp
===================================================================
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp
index ec2960d..03a8cd5 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 {
More information about the Bf-blender-cvs
mailing list