[Bf-blender-cvs] [c649526] openvdb: Fix invalid default value type when constructing a default volume shader graph.

Lukas Tönne noreply at git.blender.org
Sun Nov 13 21:44:42 CET 2016


Commit: c6495263c6697962dbc7d28bab6b7f8cc9791c12
Author: Lukas Tönne
Date:   Wed Nov 9 11:35:11 2016 +0100
Branches: openvdb
https://developer.blender.org/rBc6495263c6697962dbc7d28bab6b7f8cc9791c12

Fix invalid default value type when constructing a default volume shader graph.

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

M	intern/cycles/render/shader.cpp

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

diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp
index 0505928..61146a8 100644
--- a/intern/cycles/render/shader.cpp
+++ b/intern/cycles/render/shader.cpp
@@ -512,7 +512,7 @@ void ShaderManager::add_default(Scene *scene)
 		ShaderGraph *graph = new ShaderGraph();
 
 		ScatterVolumeNode *scatter = new ScatterVolumeNode();
-		scatter->input("Density")->set(make_float3(0.8f, 0.8f, 0.8f));
+		scatter->input("Density")->set(1.0);
 		graph->add(scatter);
 
 		graph->connect(scatter->output("Volume"), graph->output()->input("Volume"));




More information about the Bf-blender-cvs mailing list