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:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-05-30 19:47:12 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-05-30 19:47:12 +0400
commit0e9b0f6d9eafb9a92f0589084d3ff05912a86ede (patch)
tree652a51fc0fa0bd528a6660f7cc738f74bfbde456 /intern/cycles/render/graph.cpp
parentf462743daefc34f5dad98a46262aefe6cc4ea391 (diff)
Fix #31645, mix node results in crash upon render. This happens when unused mix nodes are removed from the cycles graph. In case the inputs are both unconnected it still tried to reconnect them.
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 77bc9cf27ec..a0e7af66100 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -340,7 +340,8 @@ void ShaderGraph::remove_proxy_nodes(vector<bool>& removed)
foreach(ShaderInput *input, inputs) {
disconnect(input);
- connect(output, input);
+ if (output)
+ connect(output, input);
}
}
}