diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-01-23 17:13:20 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-01-23 17:13:20 +0400 |
commit | 7bcbbe26d581f5dd57de3a0d8ddf08264e2aa631 (patch) | |
tree | c9ad8f01762e4c3de4a6f31cb4e961cc109552ac /intern | |
parent | b9472cbd83373c303102f92432a72b1cfc0a349f (diff) |
Fix #33905: cycles crash with bsdf node plugged twice into add shader.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/graph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp index 14b219383d0..af27b46771c 100644 --- a/intern/cycles/render/graph.cpp +++ b/intern/cycles/render/graph.cpp @@ -708,7 +708,8 @@ void ShaderGraph::transform_multi_closure(ShaderNode *node, ShaderOutput *weight value2_in->value.x = 1.0f; weight_out = math_node->output("Value"); - disconnect(weight_in); + if(weight_in->link) + disconnect(weight_in); } /* connected to closure mix weight */ |