[Bf-blender-cvs] [1fac3b7da05] soc-2018-hair-shader: Fix hair shader not working in final render.

Brecht Van Lommel noreply at git.blender.org
Fri Jun 1 14:51:55 CEST 2018


Commit: 1fac3b7da05ada27d8a41c114283394b5a505ebb
Author: Brecht Van Lommel
Date:   Fri Jun 1 14:49:09 2018 +0200
Branches: soc-2018-hair-shader
https://developer.blender.org/rB1fac3b7da05ada27d8a41c114283394b5a505ebb

Fix hair shader not working in final render.

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

M	intern/cycles/render/graph.cpp

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

diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index 59e1a12c3a1..074d5bc7254 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -1072,6 +1072,9 @@ int ShaderGraph::get_num_closures()
 		else if(CLOSURE_IS_VOLUME(closure_type)) {
 			num_closures += VOLUME_STACK_SIZE;
 		}
+		else if(closure_type == CLOSURE_BSDF_HAIR_PRINCIPLED_ID) {
+			num_closures += 2;
+		}
 		else {
 			++num_closures;
 		}



More information about the Bf-blender-cvs mailing list