Fix for debug assert failure with Reroute nodes in compositor. After redirecting links from the reroute output the input must be completely unlinked, otherwise the debug_check_node_connections will complain (this is a sanity check that ensures all the original Nodes have been fully reconnected to Operations).

This commit is contained in:
Lukas Toenne
2012-11-21 09:32:40 +00:00
parent dba4444cd8
commit e6449a5c2c

View File

@@ -43,6 +43,10 @@ void MuteNode::reconnect(ExecutionSystem *graph, OutputSocket *output)
if (input->getDataType() == output->getDataType()) {
if (input->isConnected()) {
output->relinkConnections(input->getConnection()->getFromSocket(), false);
/* output connections have been redirected,
* remove the input connection to completely unlink the node.
*/
input->unlinkConnections(graph);
return;
}
}