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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user