Fix #31645, mix node results in crash upon render. This happens when unused mix nodes...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 30 May 2012 15:47:12 +0000 (15:47 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 30 May 2012 15:47:12 +0000 (15:47 +0000)
intern/cycles/render/graph.cpp

index 77bc9cf27ecbda3591a05ec39ba56254327d139b..a0e7af6610012b9c6ae34aa78788adfcd83a2161 100644 (file)
@@ -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);
                                }
                        }
                }