From 7bcbbe26d581f5dd57de3a0d8ddf08264e2aa631 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 23 Jan 2013 13:13:20 +0000 Subject: Fix #33905: cycles crash with bsdf node plugged twice into add shader. --- intern/cycles/render/graph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intern/cycles/render/graph.cpp') 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 */ -- cgit v1.2.3