From 92d12ab38b6b643ac6264ed235eba4d16a97c1e2 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 8 Sep 2015 11:47:39 +0500 Subject: Cycles: Correction to integrator's transparent shadows It was possible that deleting transparent BSDF from shader wouldn't disable transparent shadows in integrator when doing viewport render. --- intern/cycles/render/integrator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp index 465d7ea02c6..9f8d5b50ccd 100644 --- a/intern/cycles/render/integrator.cpp +++ b/intern/cycles/render/integrator.cpp @@ -100,6 +100,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene * transparent shaders in the scene. Otherwise we can disable it * to improve performance a bit. */ if(transparent_shadows) { + kintegrator->transparent_shadows = false; 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) { -- cgit v1.2.3