[Bf-blender-cvs] [92d12ab] master: Cycles: Correction to integrator's transparent shadows

Sergey Sharybin noreply at git.blender.org
Tue Sep 8 08:48:41 CEST 2015


Commit: 92d12ab38b6b643ac6264ed235eba4d16a97c1e2
Author: Sergey Sharybin
Date:   Tue Sep 8 11:47:39 2015 +0500
Branches: master
https://developer.blender.org/rB92d12ab38b6b643ac6264ed235eba4d16a97c1e2

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.

===================================================================

M	intern/cycles/render/integrator.cpp

===================================================================

diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp
index 465d7ea..9f8d5b5 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) {




More information about the Bf-blender-cvs mailing list