Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-01-23 17:13:20 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-01-23 17:13:20 +0400
commit7bcbbe26d581f5dd57de3a0d8ddf08264e2aa631 (patch)
treec9ad8f01762e4c3de4a6f31cb4e961cc109552ac /intern/cycles/render/graph.cpp
parentb9472cbd83373c303102f92432a72b1cfc0a349f (diff)
Fix #33905: cycles crash with bsdf node plugged twice into add shader.
Diffstat (limited to 'intern/cycles/render/graph.cpp')
-rw-r--r--intern/cycles/render/graph.cpp3
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 */